refactor: change ulong[] to List<ulong> for better ergonomics
This commit is contained in:
parent
e12bd6194b
commit
4eb5c16451
8 changed files with 37 additions and 46 deletions
|
|
@ -38,7 +38,8 @@ public partial class GuildsController
|
|||
"Role is already a key role"
|
||||
);
|
||||
|
||||
await guildRepository.AddKeyRoleAsync(guildId, DiscordSnowflake.New(roleId));
|
||||
guildConfig.KeyRoles.Add(roleId);
|
||||
await guildRepository.UpdateConfigAsync(guildId, guildConfig);
|
||||
return NoContent();
|
||||
}
|
||||
|
||||
|
|
@ -55,7 +56,8 @@ public partial class GuildsController
|
|||
"Role is already not a key role"
|
||||
);
|
||||
|
||||
await guildRepository.RemoveKeyRoleAsync(guildId, DiscordSnowflake.New(roleId));
|
||||
guildConfig.KeyRoles.Remove(roleId);
|
||||
await guildRepository.UpdateConfigAsync(guildId, guildConfig);
|
||||
return NoContent();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue