#Get the Guild from where a slash command was used inside the discord.Option field

1 messages · Page 1 of 1 (latest)

solar raft
#
@commands.slash_command(name="server_config", description="Edit Guild Teamroles")
    async def server_config(
        self,
        ctx,
        field: discord.Option(
            description="Select the Role type",
            choices=["Owner",
            "Admin",
            "Head Supporter",
            "Supporter",
            "Test Supporter",
            "Team Role"
            ],
            required=True,
        ),
        role: discord.Option(description="Select the Role", choices=[role for role in ctx.guild.roles], required=True)
    ):
        if ctx.author.id == 424657032252096525:
            await ctx.respond(f"....", ephemeral=True)```
rich spire
solar raft
#

I'll try thanks

rich spire
#

rest will be managed by the library and discord

solar raft
#

Works thanks a lot

rich spire
#

np

#

.close

balmy flameBOT
#

Done with your help thread?

Please close your own help thread by using </close:1009144375709814897> with @tribal stream.