Skip to content

Commit 40d66c2

Browse files
committed
social.py: remove old profile legacy prefix commands
1 parent 343bb00 commit 40d66c2

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

modules/social.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -820,34 +820,6 @@ async def generate_user_flow_embed(self, member: discord.Member, new_user: bool
820820

821821
return embed, main_img # Both need to be passed into a message for image embedding to function
822822

823-
@commands.group(name='profile', invoke_without_command=True)
824-
async def _old_profile_redirect(self, ctx):
825-
for command in self.bot.tree.get_commands(guild=discord.Object(id=config.nintendoswitch)):
826-
# Iterate over commands in the tree so we can get the profile command ID
827-
if command.name == 'profile':
828-
break
829-
830-
commandStr = f'</profile view:{command.extras["id"]}>'
831-
await ctx.message.reply(
832-
f':repeat: Hi there! I no longer use text commands. Instead, please repeat your command using {commandStr} as a slash command instead',
833-
delete_after=10,
834-
)
835-
await ctx.message.delete()
836-
837-
@_old_profile_redirect.command(name='edit')
838-
async def _old_profile_redirect_edit(self, ctx):
839-
for command in self.bot.tree.get_commands(guild=discord.Object(id=config.nintendoswitch)):
840-
# Iterate over commands in the tree so we can get the profile command ID
841-
if command.name == 'profile':
842-
break
843-
844-
commandStr = f'</profile edit:{command.extras["id"]}>'
845-
await ctx.message.reply(
846-
f':repeat: Hi there! I no longer use text commands. Instead, please repeat your command using {commandStr} as a slash command instead',
847-
delete_after=10,
848-
)
849-
await ctx.message.delete()
850-
851823
async def _profile_friendcode_autocomplete(
852824
self, interaction: discord.Interaction, current: str
853825
) -> typing.List[app_commands.Choice[str]]:

0 commit comments

Comments
 (0)