Exemplo n.º 1
0
 private async Task DiscordShardedClientOnRoleUpdated(SocketRole arg1, SocketRole arg2)
 {
     if (RoleUpdated != null)
     {
         await RoleUpdated.Invoke(this, arg1, arg2).ConfigureAwait(false);
     }
 }
Exemplo n.º 2
0
 internal async Task OnRoleUpdated(SocketRole before, SocketRole after) => await(RoleUpdated?.Invoke(before, after) ?? Task.CompletedTask);