Exemple #1
0
 internal static void Initialize(Services.Interfaces.IDiscordClient discordClient)
 {
     _discordClient = discordClient;
     _discordClient.UsersService.UserJoined         += UserJoined;
     _discordClient.ServersService.BotAddedToServer += BotAddedToServer;
     Log.Information("Server initialized");
 }
Exemple #2
0
 internal static void Initialize(Services.Interfaces.IDiscordClient discordClient)
 {
     _discordClient = discordClient;
     _discordClient.UsersService.UserJoined         += UserJoined;
     _discordClient.ServersService.BotAddedToServer += BotAddedToServer;
     _discordClient.ChannelsService.ChannelCreated  += ChannelCreated;
     _discordClient.RolesService.RoleUpdated        += RoleUpdated;
     _discordClient.RolesService.RoleCreated        += RoleCreated;
     _discordClient.RolesService.RoleRemoved        += RoleRemoved;
     Log.Information("Server initialized");
 }