You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BridgeOption converts discord.Member to a discord.User object when using the ext version unlike the slash version. Specifying discord.Member without BridgeOption works fine with both variants of the bridge command
Reproduction Steps
Use a bridge command with an argument that has the BridgeOption converter with discord.Member as an argument.
Minimal Reproducible Code
@bridge.bridge_command(name='test', description="Hello World")asyncdeftest_cmd(
self, ctx: bridge.BridgeContext,
member: BridgeOption(discord.Member, "A server member")
):
awaitctx.respond(f"{type(member)}")
Expected Results
For both the ext and slash command version to return a discord.Member objects like using discord.Member without a BridgeOption converter
Actual Results
The ext variant of the command gets a discord.User object instead of a discord.Member object like the slash variant gets or the version without the converter gets.
This can cause unexpected discord.User objects when running the ext variant that can cause problems like
Summary
BridgeOption converts
discord.Memberto adiscord.Userobject when using the ext version unlike the slash version. Specifying discord.Member withoutBridgeOptionworks fine with both variants of the bridge commandReproduction Steps
Use a bridge command with an argument that has the
BridgeOptionconverter withdiscord.Memberas an argument.Minimal Reproducible Code
Expected Results
For both the ext and slash command version to return a
discord.Memberobjects like usingdiscord.Memberwithout aBridgeOptionconverterActual Results
The ext variant of the command gets a
discord.Userobject instead of adiscord.Memberobject like the slash variant gets or the version without the converter gets.This can cause unexpected
discord.Userobjects when running the ext variant that can cause problems likeNote: traceback not related to minimal reproduction code
Intents
all
System Information
Checklist
Additional Context
No response