Пример #1
0
 internal async Task DiscordLogNotification(DiscordLogNotification notification)
 {
     if (DiscordLogEvent != null)
     {
         await DiscordLogEvent?.Invoke(notification);
     }
 }
 private async Task WonderlandClient_LogEvent(DiscordLogNotification notification)
 {
     await Application.Current.Dispatcher.InvokeAsync(delegate
     {
         _discordConsole.AddOutput(notification.Message);
         DiscordConsole.ScrollToBottom();
     });
 }
 public async Task Handle(DiscordLogNotification notification, CancellationToken cancellationToken)
 {
     await _relayEventHandler.DiscordLogNotification(notification);
 }