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.Member
to adiscord.User
object when using the ext version unlike the slash version. Specifying discord.Member withoutBridgeOption
works fine with both variants of the bridge commandReproduction Steps
Use a bridge command with an argument that has the
BridgeOption
converter withdiscord.Member
as an argument.Minimal Reproducible Code
Expected Results
For both the ext and slash command version to return a
discord.Member
objects like usingdiscord.Member
without aBridgeOption
converterActual Results
The ext variant of the command gets a
discord.User
object instead of adiscord.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 likeNote: traceback not related to minimal reproduction code
Intents
all
System Information
Checklist
Additional Context
No response
The text was updated successfully, but these errors were encountered: