fix(tools): fix remove_reaction_success test
The output format used "{action}ed" which produced "removeed" for the
remove action. Use explicit past-tense mapping instead.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9eac6bafef
commit
cdb5ac1471
@ -158,11 +158,17 @@ impl Tool for ReactionTool {
|
||||
.await
|
||||
};
|
||||
|
||||
let past_tense = if action == "remove" {
|
||||
"removed"
|
||||
} else {
|
||||
"added"
|
||||
};
|
||||
|
||||
match result {
|
||||
Ok(()) => Ok(ToolResult {
|
||||
success: true,
|
||||
output: format!(
|
||||
"Reaction {action}ed: {emoji} on message {message_id} in {channel_name}"
|
||||
"Reaction {past_tense}: {emoji} on message {message_id} in {channel_name}"
|
||||
),
|
||||
error: None,
|
||||
}),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user