remove unused "as string"

This commit is contained in:
kdh8219 2023-05-05 15:59:00 +09:00
parent fcb6652891
commit 1d87da5802
No known key found for this signature in database
GPG key ID: 2B5B609E12BB4C19

View file

@ -6,9 +6,7 @@ import { getCommands } from "./command/commands.js";
const commands = getCommands(); const commands = getCommands();
// Construct and prepare an instance of the REST module // Construct and prepare an instance of the REST module
const rest = new REST({ version: "10" }).setToken( const rest = new REST({ version: "10" }).setToken(process.env.DISCORD_TOKEN);
process.env.DISCORD_TOKEN as string
);
// and deploy your commands! // and deploy your commands!
(async () => { (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 // The put method is used to fully refresh all commands in the guild with the current set
await rest.put( await rest.put(
Routes.applicationGuildCommands( Routes.applicationGuildCommands(
process.env.DISCORD_CLIENT_ID as string, process.env.DISCORD_CLIENT_ID,
process.env.DISCORD_TARGET_GUILD_ID as string process.env.DISCORD_TARGET_GUILD_ID
), ),
{ {
body: commands.map((command) => { body: commands.map((command) => {