Error with slash commands #581
-
My code: client.on('ready', async () => {
client.user.setStatus('dnd')
console.log(`Logged in with ${client.user.tag}!`)
const channel = client.channels.cache.get(genid);
channel.sendSlash('botid', 'cmd', 'subcmd');
setInterval(() => {
const channel = client.channels.cache.get(genid);
if (!channel) return console.error('Wrong channel id!');
channel.sendSlash('botid', 'cmd', 'subcmd');
}, 3200000);
}); Error im getting:
|
Beta Was this translation helpful? Give feedback.
Answered by
aiko-chan-ai
Mar 18, 2023
Replies: 1 comment
-
update nodejs v18+ |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Damnbuoy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
update nodejs v18+