

If you’re not logging member joins, you can get away with only granting Manage Webhooks to each channel the bot sends logs to.
Suggester bot discord update#
You can obtain a User instance from a user id with client.fetchUser Manage Channels & Manage Server are required in the member join logging invite because Discord sends invite creation/deletion info with it, as well as the ability to fetch invites on join to update the bot.You can obtain a User instance from a message the user sent by.To send a message to a user you first need a User instance representing the user you want to send the message to. sendMessage, which sometimes runs into problems. send tends to work better for me in general than.

EDIT- : This is because the sendMessage command is outdated as of v12 in Discord Js The above answers work fine too, but I've found you can usually just use ("blah blah") instead of ("blah blah"). I recommend looking up the Discord.js documentation about a certain object's properties whenever you get stuck, you might find a particular function that may serve as your solution. Hence, the answer is: ("Your message here.") (you can replace author as mentioned user in a message or something, etc) Once the bot hits this goal it will be able to self fund itself and also provide more finances for future development :) If the bot reaches this goal it. Since you want the bot to PM a certain user, you can use thor as your client. Prism development is a development team that is leading the development of new and creative discord bots and also minecraft resources. send(), the client is where the bot will send a message to(A channel, everywhere in the server, or a PM). In order for a bot to send a message, you need.
