From 1d87da580285e46adffc6204f8cb5b9630cffd0b Mon Sep 17 00:00:00 2001 From: kdh8219 <65698239+kdh8219@users.noreply.github.com> Date: Fri, 5 May 2023 15:59:00 +0900 Subject: [PATCH] remove unused "as string" --- src/deploy.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/deploy.ts b/src/deploy.ts index c4f535c..ba07fe3 100755 --- a/src/deploy.ts +++ b/src/deploy.ts @@ -6,9 +6,7 @@ import { getCommands } from "./command/commands.js"; const commands = getCommands(); // Construct and prepare an instance of the REST module -const rest = new REST({ version: "10" }).setToken( - process.env.DISCORD_TOKEN as string -); +const rest = new REST({ version: "10" }).setToken(process.env.DISCORD_TOKEN); // and deploy your commands! (async () => { @@ -18,8 +16,8 @@ const rest = new REST({ version: "10" }).setToken( // The put method is used to fully refresh all commands in the guild with the current set await rest.put( Routes.applicationGuildCommands( - process.env.DISCORD_CLIENT_ID as string, - process.env.DISCORD_TARGET_GUILD_ID as string + process.env.DISCORD_CLIENT_ID, + process.env.DISCORD_TARGET_GUILD_ID ), { body: commands.map((command) => {