How can i edit a message by its id?
So I did it like this, but got an error "TypeError: Cannot read properties of undefined (reading 'messages')"
7 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
you don't have to create a new client instance in each file
Ok, i did
const client = new Client();
and got an error "TypeError [ClientMissingIntents]: Valid intents must be provided for the Client"I just told you that you don't have to create a new client in each file
I assume
bot
is already a Client instance
use itOh, you mean
(bot, args, argsF)
This doesn't solve my problemreplace all your
client
by bot
assuming bot
is already a Client instanceIt works thanks