remove unused "as string"
This commit is contained in:
parent
fcb6652891
commit
1d87da5802
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue