You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
378 B
10 lines
378 B
10 months ago
|
import {REST, Routes} from 'discord.js';
|
||
|
require("dotenv").config();
|
||
|
|
||
|
let token = process.env["DISCORD_TOKEN"] as string;
|
||
|
let clientId = process.env["CLIENT_ID"] as string;
|
||
|
let guildId = process.env["GUILD_ID"] as string;
|
||
|
|
||
|
const rest = new REST().setToken(token);
|
||
|
|
||
|
rest.put(Routes.applicationGuildCommands(clientId, guildId), {body: [require("./commands/ping").data.toJSON()]});
|