File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,6 @@ const client = new Client({
26
26
} ) ;
27
27
28
28
client . on ( 'ready' , async ( ) => {
29
- console . info ( 'Ready!' ) ;
30
-
31
29
const commandData = [ ] ;
32
30
33
31
// setup commands
@@ -58,16 +56,16 @@ client.on('ready', async () => {
58
56
// clear guild commands
59
57
// guild.commands.set([]);
60
58
// console.log('Commands cleared');
61
- // const d = await guild.commands.fetch();
62
- // console.log(d);
63
59
} else {
64
60
// register global commands
65
- const data = await rest . put ( Routes . applicationCommands ( CLIENT_ID ) , { body : commands } ) ;
61
+ const data = await rest . put ( Routes . applicationCommands ( CLIENT_ID ) , { body : commandData } ) ;
66
62
67
63
// @ts -ignore
68
64
console . info ( `Successfully reloaded ${ data ?. length } global application (/) commands.` ) ;
69
65
}
70
66
67
+ console . info ( 'Ready!' ) ;
68
+
71
69
if ( ! client . user ) return ;
72
70
73
71
client . user . setPresence ( {
You can’t perform that action at this time.
0 commit comments