I would like to ask
Why is my message command executed twice (for example, if I send cgoogle, it will return two messages)
I've tried reinstalling disnake, rewriting the code, and even going to the disnake guide to copy the code he provided, to no avail.
This is part of the code I wrote(first picture):
@commands.command(name='google')
async def google_search_command(self, inter, query = None):
if query:
search_url = f"https://www.google.com/search?q={query.replace(' ','+')}"
await inter.send(f"[{query}]({search_url})")
I copied this from the guide(second picture):
@commands.command()
async def google(self,ctx, arg):
await ctx.send(arg)
As for other codes, I put them in replit