misc(suggestions): added typechecking to _interaction_finish_suggestion

This commit is contained in:
Seaswimmer 2023-09-21 11:09:13 -04:00
parent 48c75b80f6
commit 9d0450b223
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -520,7 +520,7 @@ class Suggestions(commands.Cog):
)
await ctx.tick()
async def _interaction_finish_suggestion(self, interaction: discord.Interaction, message: discord.Message, approve, reason = None):
async def _interaction_finish_suggestion(self, interaction: discord.Interaction, message: discord.Message, approve: bool, reason: str = None):
embed = message.embeds
title = embed[0].title
if not title.startswith("Suggestion #"):