interaction-kit icon indicating copy to clipboard operation
interaction-kit copied to clipboard

Better API for different platforms

Open IanMitchell opened this issue 2 years ago • 0 comments

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...

IanMitchell avatar Jan 27 '23 19:01 IanMitchell