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