Esempio n. 1
0
 public async Task UserJoinCommand()
 {
     var html    = new Welcome(Context.User.Username, Context.User.GetAvatarUrl());
     var channel = Context.Client.GetChannel(671139806549508117) as SocketTextChannel;
     await channel.SendFileAsync(new MemoryStream(await html.CreateImage()), "welcome.jpg", "");
 }
 private async Task User_Joined_Guild_Event(SocketGuildUser user)
 {
     var html    = new Welcome(user.Username, user.GetAvatarUrl());
     var channel = _Client.GetChannel(671139806549508117) as SocketTextChannel;
     await channel.SendFileAsync(new MemoryStream(await html.CreateImage()), "welcome.jpg", "");
 }