Compare commits
No commits in common. "218be2f0b157c41045650bde4c3f72ce174eb0a6" and "6ae1096d7908fe90a95b25c61a7a1a7fd8b25a98" have entirely different histories.
218be2f0b1
...
6ae1096d79
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2431,7 +2431,7 @@ checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56"
|
||||
|
||||
[[package]]
|
||||
name = "reminder-rs"
|
||||
version = "1.7.23"
|
||||
version = "1.7.22"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"chrono",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "reminder-rs"
|
||||
version = "1.7.23"
|
||||
version = "1.7.22"
|
||||
authors = ["Jude Southworth <judesouthworth@pm.me>"]
|
||||
edition = "2021"
|
||||
license = "AGPL-3.0 only"
|
||||
|
@ -73,6 +73,7 @@ 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
|
||||
@ -81,12 +82,14 @@ 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 { "❌" },
|
||||
|
Loading…
Reference in New Issue
Block a user