Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //So, I am currently trying to set up a join announcement for my bot. I got the basic code (showing later on below) and got to put it in the CommandHandler at the bottom of the class which I have done. However, i have no idea where and how to call it to run.
- public async Task AnnounceJoinedUser(SocketGuildUser user)
- {
- var channel = user.Guild.DefaultChannel;
- await channel.SendMessageAsync("Welcome to the server " + user.Mention + " !");
- }
- //hat above is my current code for it.
Advertisement
Add Comment
Please, Sign In to add comment