Skip to content

Commit 08dcde9

Browse files
committed
fix: convert random to slash command
1 parent 7ef33c7 commit 08dcde9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/commands/random.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::{
55
use rand::seq::IteratorRandom;
66
use serenity::all::{Mentionable as _, RoleId};
77

8-
#[poise::command(prefix_command)]
8+
#[poise::command(slash_command)]
99
pub async fn random(ctx: Context<'_>) -> Result<(), Error> {
1010
let guild = ctx.guild_id().ok_or("No guild id")?;
1111
let members = guild.members(ctx.http(), None, None).await?;

0 commit comments

Comments
 (0)