remove useless format!

This commit is contained in:
Lionarius
2023-04-22 19:21:54 +03:00
parent c34bc3c11e
commit 3877b0a36a
3 changed files with 4 additions and 4 deletions

View File

@@ -254,7 +254,7 @@ impl LobbyCommand {
None => {
interaction
.edit_original_interaction_response(ctx, |response| {
response.content(format!("Failed to get players"))
response.content("Failed to get players")
})
.await?;
return Ok(());

View File

@@ -122,7 +122,7 @@ impl MixerCommand for PreferenceCommand {
response
.kind(InteractionResponseType::ChannelMessageWithSource)
.interaction_response_data(|message| {
message.content(format!("User not found")).ephemeral(true)
message.content("User not found").ephemeral(true)
})
})
.await?;

View File

@@ -87,7 +87,7 @@ impl MixerCommand for RatingCommand {
response
.kind(InteractionResponseType::ChannelMessageWithSource)
.interaction_response_data(|message| {
message.content(format!("User not found")).ephemeral(true)
message.content("User not found").ephemeral(true)
})
})
.await?;
@@ -133,7 +133,7 @@ impl MixerCommand for RatingCommand {
.kind(InteractionResponseType::ChannelMessageWithSource)
.interaction_response_data(|message| {
message
.content(format!("Rank must be between 1 and 5000"))
.content("Rank must be between 1 and 5000")
.ephemeral(true)
})
})