Compare commits
2 commits
b033b062a5
...
5b9cd88848
Author | SHA1 | Date | |
---|---|---|---|
5b9cd88848 | |||
eb808d00e5 |
2 changed files with 12 additions and 1 deletions
src/EllieBot
|
@ -269,6 +269,9 @@ public class MuteService : IEService, IReadyExecutor
|
||||||
|
|
||||||
foreach (var toOverwrite in await guild.GetTextChannelsAsync())
|
foreach (var toOverwrite in await guild.GetTextChannelsAsync())
|
||||||
{
|
{
|
||||||
|
if (toOverwrite is IThreadChannel)
|
||||||
|
continue;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (!toOverwrite.PermissionOverwrites.Any(x => x.TargetId == muteRole.Id
|
if (!toOverwrite.PermissionOverwrites.Any(x => x.TargetId == muteRole.Id
|
||||||
|
|
|
@ -74,7 +74,15 @@ public abstract class ConfigServiceBase<TSettings> : IConfigService
|
||||||
Save();
|
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>
|
/// <summary>
|
||||||
|
|
Loading…
Add table
Reference in a new issue