Beispiel #1
0
 private void DiscordClientOnMessageReceived(object sender, global::Discord.MessageEventArgs e)
 {
     if (e.User.Id == RootClient.CurrentUser.Id)
     {
         return;
     }
     MessageReceived?.Invoke(this, new EventArgs.MessageEventArgs(new DiscordMessage(e.Message), new DiscordServer(e.Server), new DiscordChannel(e.Channel), new DiscordUser(e.User)));
 }
Beispiel #2
0
 private void DiscordClientOnMessageSent(object sender, global::Discord.MessageEventArgs e)
 {
     MessageSent?.Invoke(this, new EventArgs.MessageEventArgs(new DiscordMessage(e.Message), new DiscordServer(e.Server), new DiscordChannel(e.Channel), new DiscordUser(e.User)));
 }