diff --git a/src/hooks.rs b/src/hooks.rs index 1f4c47d..b8c2a2b 100644 --- a/src/hooks.rs +++ b/src/hooks.rs @@ -73,7 +73,6 @@ async fn check_self_permissions(ctx: Context<'_>) -> bool { if let Some(permissions) = app_permissions { return if permissions.send_messages() && permissions.embed_links() - && permissions.view_channel() && manage_webhooks { true @@ -82,14 +81,12 @@ async fn check_self_permissions(ctx: Context<'_>) -> bool { .send(CreateReply::default().content(format!( "The bot appears to be missing some permissions: -{} **View Channel** {} **Send Message** {} **Embed Links** {} **Manage Webhooks** Please check the bot's roles, and any channel overrides. Alternatively, giving the bot \"Administrator\" will bypass permission checks", - if permissions.view_channel() { "✅" } else { "❌" }, if permissions.send_messages() { "✅" } else { "❌" }, if permissions.embed_links() { "✅" } else { "❌" }, if manage_webhooks { "✅" } else { "❌" },