Esempio n. 1
0
 private async Task ReadServerMessagesHistory(DiscordServerContext server, DateTime lastInitDate)
 {
     foreach (var textChannel in server.GetTextChannels())
     {
         await this._serverScanningService.ScanChannelHistory(server, textChannel, lastInitDate);
     }
     Log.Information("Read messages history: {server}", server.Name);
 }
Esempio n. 2
0
 private Task SetChannelsPermissions(DiscordServerContext server, UserRole mutedRole, ChangedPermissions changedPermissions)
 {
     return(this._channelsService.SetPermissions(server.GetTextChannels(), server, changedPermissions, mutedRole));
 }