Skip to content

Commit

Permalink
Fix /queue context
Browse files Browse the repository at this point in the history
  • Loading branch information
WorkingRobot committed Jan 25, 2025
1 parent 1f27365 commit 22c9090
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions web/src/discord/commands/queue_times.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@ use crate::{
};
use poise::CreateReply;

#[poise::command(slash_command, rename = "queue", subcommands("datacenter", "world"))]
#[poise::command(
slash_command,
install_context = "Guild|User",
interaction_context = "Guild|BotDm|PrivateChannel",
rename = "queue",
subcommands("datacenter", "world")
)]
#[allow(clippy::unused_async)]
pub async fn queue_times(_: Context<'_>) -> Result<(), Error> {
Ok(())
}

/// Check queue times for a datacenter
#[poise::command(
slash_command,
install_context = "Guild|User",
interaction_context = "Guild|BotDm|PrivateChannel"
)]
#[poise::command(slash_command)]
async fn datacenter(
ctx: Context<'_>,
#[description = "Datacenter to check for"] datacenter: TravelDatacenterParam,
Expand Down

0 comments on commit 22c9090

Please sign in to comment.