hi, I recently started making a new bot after coming from V3 version of this library. I've created a test command with command options, but even though the command is showing up, the options aren't. This is my Code:
bot = Client(intents=Intents.DEFAULT, token=TOKEN)
@listen()
async def on_startup():
print("bot is running")
@slash_command(name="channel_ban",
description="excludes a member from a channel",
options=[
SlashCommandOption(
name="channel",
description="the channel that the user should no longer be able to access",
required=True,
type=OptionType.CHANNEL
), SlashCommandOption(
name="member",
description="the member who should no longer be able to access the channel",
required=True,
type=OptionType.USER
)
],
scopes=[
806555455710691409
])
async def channel_ban(ctx: SlashContext, channel: GuildChannel, member: Member):
print(channel)
print(member)
bot.start()
The error Im getting makes sense to me, since I haven't been able to pass any arguments via discord, of course they are missing:
TypeError: channel_ban() missing 2 required positional arguments: 'channel' and 'member'
any ideas on why this is happening?