fix: actually store ignored channels/roles
This commit is contained in:
parent
19d9f33454
commit
e12bd6194b
12 changed files with 37 additions and 25 deletions
|
|
@ -75,7 +75,7 @@ public partial class IgnoreMessageCommands : CommandGroup
|
|||
);
|
||||
|
||||
guildConfig.Messages.IgnoredChannels.Add(channel.ID.Value);
|
||||
await guildRepository.UpdateChannelConfigAsync(guildId, guildConfig);
|
||||
await guildRepository.UpdateConfigAsync(guildId, guildConfig);
|
||||
|
||||
return await feedbackService.ReplyAsync(
|
||||
$"Successfully added {(channel.Type == ChannelType.GuildCategory ? channel.Name : $"<#{channel.ID}>")} to the list of ignored channels."
|
||||
|
|
@ -98,7 +98,7 @@ public partial class IgnoreMessageCommands : CommandGroup
|
|||
);
|
||||
|
||||
guildConfig.Messages.IgnoredChannels.Remove(channel.ID.Value);
|
||||
await guildRepository.UpdateChannelConfigAsync(guildId, guildConfig);
|
||||
await guildRepository.UpdateConfigAsync(guildId, guildConfig);
|
||||
|
||||
return await feedbackService.ReplyAsync(
|
||||
$"Successfully removed {(channel.Type == ChannelType.GuildCategory ? channel.Name : $"<#{channel.ID}>")} from the list of ignored channels."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue