protected AudioModule(AudioService service) { _service = service; }
protected async Task <bool> CheckAllowCommandsAsync(AudioService service, ICommandContext context) { var guildConfig = await service.Config.GetConfigForGuildAsync(context.Guild); return(guildConfig?.AllowCommands ?? service.Config.AllowReactions); }
protected bool CheckAllowCommands(AudioService service, ICommandContext context) { var guildConfig = service.Config.GuildConfigs.GetValueOrDefault(context.Guild.Id); return(guildConfig?.AllowCommands ?? service.Config.AllowReactions); }