fix(forums): fixed reason not being set to anything
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
This commit is contained in:
parent
ea083608f3
commit
10dd73ac6b
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ class Forums(commands.Cog):
|
||||||
self.msg: discord.Message = passed_info['msg']
|
self.msg: discord.Message = passed_info['msg']
|
||||||
if 'reason' in passed_info:
|
if 'reason' in passed_info:
|
||||||
self.reason: str = passed_info['reason']
|
self.reason: str = passed_info['reason']
|
||||||
|
else:
|
||||||
|
self.reason = False
|
||||||
self.config = Config.get_conf(None, cog_name='Forums', identifier=2352711325)
|
self.config = Config.get_conf(None, cog_name='Forums', identifier=2352711325)
|
||||||
|
|
||||||
@ui.button(label="Yes", style=discord.ButtonStyle.success, emoji="✅")
|
@ui.button(label="Yes", style=discord.ButtonStyle.success, emoji="✅")
|
||||||
|
|
Loading…
Reference in a new issue