#you didn t resolve the promise
1 messages · Page 1 of 1 (latest)
await
The await operator is used to wait for a Promise. It can only be used inside an async function within regular JavaScript code; however it can be used on its own with JavaScript modules.
so basically I have to resolve the promise and it will work?
yeah bc Promise.channel is undefined but Message.channel is (in guilds)
yeah msg is a Message Promise not a message
so await message.channel...
bruh
const msg = await channel.send(whatever)
wait a minute you're in a dm right?
DM channels aren't cached by default you need to Enable the Channel partial
works, thanks a lot