interaction-kit
interaction-kit copied to clipboard
Better API for different platforms
export default new Application({
applicationId: process.env.APPLICATION_ID!,
publicKey: process.env.PUBLIC_KEY!,
token: process.env.TOKEN!,
platform:
process.env.ENVIRONMENT === "production"
? PlatformAlgorithm.VercelProd
: PlatformAlgorithm.VercelDev,
}).addCommand(PingCommand);
The platform bit here is ugly. I can't wait for this to be standardized, but until then...