@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)```
#Get the Guild from where a slash command was used inside the discord.Option field
1 messages · Page 1 of 1 (latest)
role: discord.Option(discord.Role, description="..."
use this
I'll try thanks
rest will be managed by the library and discord
Works thanks a lot
Done with your help thread?
Please close your own help thread by using </close:1009144375709814897> with @tribal stream.