We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81f6da4 commit bfb710aCopy full SHA for bfb710a
src/dispatch/slash.rs
@@ -133,8 +133,12 @@ async fn run_command<U, E>(
133
) {
134
(
135
Some(crate::ContextMenuCommandAction::User(action)),
136
- Some(serenity::ResolvedTarget::User(user, _)),
137
- ) => action(ctx, (*user).clone()).await,
+ Some(serenity::ResolvedTarget::User(user, member)),
+ ) => {
138
+ let mut user = (*user).clone();
139
+ user.member = member.map(|v| Box::new(v.clone()));
140
+ action(ctx, user).await
141
+ },
142
_ => return Err(command_structure_mismatch_error),
143
}
144
0 commit comments