Compare commits

...

2 commits

2 changed files with 12 additions and 1 deletions
src/EllieBot
Modules/Administration/Mute
_common/Settings

View file

@ -269,6 +269,9 @@ public class MuteService : IEService, IReadyExecutor
foreach (var toOverwrite in await guild.GetTextChannelsAsync())
{
if (toOverwrite is IThreadChannel)
continue;
try
{
if (!toOverwrite.PermissionOverwrites.Any(x => x.TargetId == muteRole.Id

View file

@ -74,7 +74,15 @@ public abstract class ConfigServiceBase<TSettings> : IConfigService
Save();
}
data = _serializer.Deserialize<TSettings>(File.ReadAllText(_filePath));
try
{
data = _serializer.Deserialize<TSettings>(File.ReadAllText(_filePath));
}
catch (Exception ex)
{
Log.Error(ex, "Error while loading {ConfigFilePath}", _filePath);
throw;
}
}
/// <summary>