ScottishLad

Untitled

Feb 5th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1. //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.
  2.  
  3. public async Task AnnounceJoinedUser(SocketGuildUser user)
  4.         {
  5.             var channel = user.Guild.DefaultChannel;
  6.             await channel.SendMessageAsync("Welcome to the server " + user.Mention + " !");
  7.         }
  8.  
  9. //hat above is my current code for it.
Advertisement
Add Comment
Please, Sign In to add comment