#The function @guild_only does'nt work without error.

1 messages · Page 1 of 1 (latest)

coral ridge
#

The function @guild_only does'nt work without error.

uncut urchin
coral ridge
#

without error

uncut urchin
#

Show us the code pls

coral ridge
#
@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
uncut urchin
#

(Client€

coral ridge
#

Yes

#

Wait

#

Oh I find a problem but I don't know the solve. It's just the SlashCommandGroup

#

Rest of command is hide

uncut urchin
#

If you want to hide the group you can add the hide=true

coral ridge
#
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
uncut urchin
coral ridge
#

It's probably this

#

It's this thanks

uncut urchin
#

With pleasure