commit
This commit is contained in:
parent
8af87fc7ac
commit
6129492031
2 changed files with 6 additions and 2 deletions
2
app.js
2
app.js
|
@ -120,7 +120,7 @@ bot.command('sb' , ctx => {
|
||||||
//Discord commands
|
//Discord commands
|
||||||
client.on('ready', () => {
|
client.on('ready', () => {
|
||||||
console.log(`[Discord] Logged in as ${client.user.tag} !`);
|
console.log(`[Discord] Logged in as ${client.user.tag} !`);
|
||||||
client.user.setPresence({ activities: [{ name: 'La belle chaise', type : 'watching' }] });
|
client.user.setPresence({ activities: [{ name: 'La belle chaise', type : 'Watching' }] });
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on('messageCreate', async msg => {
|
client.on('messageCreate', async msg => {
|
||||||
|
|
|
@ -105,9 +105,13 @@ const rest = new REST({ version: '10' }).setToken(process.env.DISCORD);
|
||||||
try {
|
try {
|
||||||
console.log('Started refreshing application (/) commands.');
|
console.log('Started refreshing application (/) commands.');
|
||||||
|
|
||||||
await rest.put(
|
/*await rest.put(
|
||||||
Routes.applicationGuildCommands('1059559067846189067', '1062473997297668108'),
|
Routes.applicationGuildCommands('1059559067846189067', '1062473997297668108'),
|
||||||
{ body: commands },
|
{ body: commands },
|
||||||
|
);*/
|
||||||
|
await rest.put(
|
||||||
|
Routes.applicationGuildCommands('1059559067846189067', '1081560091951636481'),
|
||||||
|
{ body: commands },
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log('Successfully reloaded application (/) commands.');
|
console.log('Successfully reloaded application (/) commands.');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue