use #[rest] on many string arguments

This commit is contained in:
2025-02-21 15:33:05 -05:00
parent c19215113f
commit e62dfcc4c8
5 changed files with 11 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ use poise::serenity_prelude::EditRole;
/// Change the name of your personal role
#[poise::command(slash_command, prefix_command)]
pub async fn name(ctx: Context<'_>, name: String) -> Result<(), Error> {
pub async fn name(ctx: Context<'_>, #[rest] name: String) -> Result<(), Error> {
let guild = if let Some(guild) = ctx.guild_id() {
guild
} else {