Example #1
0
 private async Task DiscordShardedClientOnRoleCreated(SocketRole arg)
 {
     if (RoleCreated != null)
     {
         await RoleCreated.Invoke(this, arg).ConfigureAwait(false);
     }
 }
Example #2
0
 internal async Task OnRoleCreated(SocketRole role) => await(RoleCreated?.Invoke(role) ?? Task.CompletedTask);