Skip to content

Commit

Permalink
fix: add default permissions for template channel command
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanccn committed Jan 17, 2024
1 parent d42befc commit 84a6961
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/commands/utils/template_channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ use poise::{
use crate::{reqwest_client::HTTP, template_channel::Config as TemplateChannelConfig, Context};

/// Apply a channel template from a URL to a channel
#[poise::command(rename = "template-channel", slash_command, guild_only, ephemeral)]
#[poise::command(
rename = "template-channel",
slash_command,
guild_only,
ephemeral,
default_member_permissions = "MANAGE_GUILD"
)]
pub async fn template_channel(
ctx: Context<'_>,
#[description = "The URL to fetch the template from"] url: String,
Expand Down

0 comments on commit 84a6961

Please sign in to comment.