#The function @guild_only does'nt work without error.
1 messages · Page 1 of 1 (latest)
Can u show us the code
without error
Show us the code pls
@discord.slash_command(name="server-info",description="Obtiens des informations sur le serveur")
@commands.cooldown(1,5, commands.BucketType.user)
@guild_only()
async def serverinfo(self,ctx):
pass
So the / appear in dm even when I restarted ur discord ?
(Client€
Yes
Wait
Oh I find a problem but I don't know the solve. It's just the SlashCommandGroup
Rest of command is hide
Can you show me the group definition ?
If you want to hide the group you can add the hide=true
ghost = discord.SlashCommandGroup('ghost-ping','Configurer le plugins de ghost-ping')
@ghost.command(name='config',description='Configurer le plugins de ghost-ping')
@guild_only()
async def config(self,ctx):
# Rest of code
Maybe try to add guild_only = True on the group definition
With pleasure