This commit is contained in:
parent
3eb57fda4b
commit
08ad1fe902
2 changed files with 4 additions and 4 deletions
|
@ -8,5 +8,5 @@ async def setup(bot):
|
|||
|
||||
async def teardown(bot):
|
||||
# We're removing the commands here to ensure they get unloaded properly when the cog is unloaded.
|
||||
bot.tree.remove_command("approve_context", type=discord.AppCommandType.message)
|
||||
bot.tree.remove_command("deny_context", type=discord.AppCommandType.message)
|
||||
bot.tree.remove_command("approve_context", type=discord.AppCommandType.message) # pylint: disable=undefined-variable
|
||||
bot.tree.remove_command("deny_context", type=discord.AppCommandType.message) # pylint: disable=undefined-variable
|
||||
|
|
|
@ -44,7 +44,6 @@ class Suggestions(commands.Cog):
|
|||
def check_discrim(self, user: discord.User):
|
||||
if user.discriminator == "0":
|
||||
return user.name
|
||||
else:
|
||||
return f"{user.name}#{user.discriminator}"
|
||||
|
||||
async def red_delete_data_for_user(self, *, requester, user_id: discord.User.id):
|
||||
|
@ -611,6 +610,7 @@ class Suggestions(commands.Cog):
|
|||
)
|
||||
return nmsg
|
||||
|
||||
# pylint: disable=protected-access
|
||||
class SuggestionApproveModal(discord.ui.Modal, title="Approving suggestion..."):
|
||||
def __init__(self, message):
|
||||
super().__init__()
|
||||
|
|
Loading…
Reference in a new issue