@@ -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