internal static void Initialize(Services.Interfaces.IDiscordClient discordClient) { _discordClient = discordClient; _discordClient.UsersService.UserJoined += UserJoined; _discordClient.ServersService.BotAddedToServer += BotAddedToServer; Log.Information("Server initialized"); }
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"); }