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):
|
async def teardown(bot):
|
||||||
# We're removing the commands here to ensure they get unloaded properly when the cog is unloaded.
|
# 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("approve_context", type=discord.AppCommandType.message) # pylint: disable=undefined-variable
|
||||||
bot.tree.remove_command("deny_context", type=discord.AppCommandType.message)
|
bot.tree.remove_command("deny_context", type=discord.AppCommandType.message) # pylint: disable=undefined-variable
|
||||||
|
|
|
@ -44,8 +44,7 @@ class Suggestions(commands.Cog):
|
||||||
def check_discrim(self, user: discord.User):
|
def check_discrim(self, user: discord.User):
|
||||||
if user.discriminator == "0":
|
if user.discriminator == "0":
|
||||||
return user.name
|
return user.name
|
||||||
else:
|
return f"{user.name}#{user.discriminator}"
|
||||||
return f"{user.name}#{user.discriminator}"
|
|
||||||
|
|
||||||
async def red_delete_data_for_user(self, *, requester, user_id: discord.User.id):
|
async def red_delete_data_for_user(self, *, requester, user_id: discord.User.id):
|
||||||
# per guild suggestions
|
# per guild suggestions
|
||||||
|
@ -611,6 +610,7 @@ class Suggestions(commands.Cog):
|
||||||
)
|
)
|
||||||
return nmsg
|
return nmsg
|
||||||
|
|
||||||
|
# pylint: disable=protected-access
|
||||||
class SuggestionApproveModal(discord.ui.Modal, title="Approving suggestion..."):
|
class SuggestionApproveModal(discord.ui.Modal, title="Approving suggestion..."):
|
||||||
def __init__(self, message):
|
def __init__(self, message):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
Loading…
Reference in a new issue