fix: fixed the skip_confirmation check

This commit is contained in:
Seaswimmer 2023-08-11 16:43:05 -04:00
parent 4bd296d52a
commit f0767343e9
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -50,7 +50,7 @@ class Shortmute(commands.Cog):
else:
evidence = None
if skip_confirmation is None:
skip_confirmation = await self.config.guild(interaction.guild).confirm()
skip_confirmation = not bool(await self.config.guild(interaction.guild).confirm())
passed_info = {
"target": target,
"timedelta": timedelta,