aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config/muteRole.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/config/muteRole.ts')
-rw-r--r--src/commands/config/muteRole.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/config/muteRole.ts b/src/commands/config/muteRole.ts
index dee5322..c7a6e75 100644
--- a/src/commands/config/muteRole.ts
+++ b/src/commands/config/muteRole.ts
@@ -38,7 +38,7 @@ export default class MuteRoleCommand extends BushCommand {
}
override async exec(message: BushMessage | BushSlashMessage, args: { role: Role }): Promise<void> {
- await message.guild.setSetting('muteRole', args.role.id);
+ await message.guild!.setSetting('muteRole', args.role.id);
await message.util.send({
content: `${util.emojis.success} Changed the server's mute role to <@&${args.role.id}>.`,
allowedMentions: AllowedMentions.none()