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();
|
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) => {
|
||||||
|
|
Loading…
Reference in a new issue