Change perms from Manage Message to Manage Guild to run utility: auto-reply cmd
This commit is contained in:
@@ -27,7 +27,7 @@ struct GuildRecord {
|
|||||||
slash_command,
|
slash_command,
|
||||||
prefix_command,
|
prefix_command,
|
||||||
guild_only,
|
guild_only,
|
||||||
default_member_permissions = "MANAGE_MESSAGES"
|
default_member_permissions = "MANAGE_GUILD"
|
||||||
)]
|
)]
|
||||||
pub async fn auto_response(
|
pub async fn auto_response(
|
||||||
ctx: Context<'_>,
|
ctx: Context<'_>,
|
||||||
@@ -68,7 +68,7 @@ pub async fn auto_response(
|
|||||||
slash_command,
|
slash_command,
|
||||||
prefix_command,
|
prefix_command,
|
||||||
guild_only,
|
guild_only,
|
||||||
default_member_permissions = "MANAGE_MESSAGES"
|
default_member_permissions = "MANAGE_GUILD"
|
||||||
)]
|
)]
|
||||||
pub async fn view_auto_responses(ctx: Context<'_>) -> Result<(), Error> {
|
pub async fn view_auto_responses(ctx: Context<'_>) -> Result<(), Error> {
|
||||||
let guild_id = ctx
|
let guild_id = ctx
|
||||||
@@ -109,7 +109,7 @@ pub async fn view_auto_responses(ctx: Context<'_>) -> Result<(), Error> {
|
|||||||
slash_command,
|
slash_command,
|
||||||
prefix_command,
|
prefix_command,
|
||||||
guild_only,
|
guild_only,
|
||||||
default_member_permissions = "MANAGE_MESSAGES"
|
default_member_permissions = "MANAGE_GUILD"
|
||||||
)]
|
)]
|
||||||
pub async fn delete_auto_response(
|
pub async fn delete_auto_response(
|
||||||
ctx: Context<'_>,
|
ctx: Context<'_>,
|
||||||
@@ -157,7 +157,7 @@ pub async fn delete_auto_response(
|
|||||||
slash_command,
|
slash_command,
|
||||||
prefix_command,
|
prefix_command,
|
||||||
guild_only,
|
guild_only,
|
||||||
default_member_permissions = "MANAGE_MESSAGES"
|
default_member_permissions = "MANAGE_GUILD"
|
||||||
)]
|
)]
|
||||||
pub async fn edit_auto_response(
|
pub async fn edit_auto_response(
|
||||||
ctx: Context<'_>,
|
ctx: Context<'_>,
|
||||||
|
|||||||
Reference in New Issue
Block a user