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 2c99507 commit 1cb2f58Copy full SHA for 1cb2f58
src/dispatch/slash.rs
@@ -127,8 +127,12 @@ async fn run_command<U, E>(
127
) {
128
(
129
Some(crate::ContextMenuCommandAction::User(action)),
130
- Some(serenity::ResolvedTarget::User(user, _)),
131
- ) => action(ctx, (*user).clone()).await,
+ Some(serenity::ResolvedTarget::User(user, member)),
+ ) => {
132
+ let mut user = (*user).clone();
133
+ user.member = member.map(|v| Box::new(v.clone()));
134
+ action(ctx, user).await
135
+ },
136
_ => return Err(command_structure_mismatch_error),
137
}
138
0 commit comments