From 10406a0f68a666457b9b8c45281a139465eefb85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Cl=C3=A9ment?= Date: Wed, 29 Jun 2022 16:39:27 +0200 Subject: [PATCH] :ambulance: Fix permission --- README.md | 1 + src/main/java/net/Broken/Api/Controllers/GuildController.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1513c9b..1f8f206 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ # ClaptrapBot: A multifunctional Discord Bot ! + [![GitHub Release][releases-shield]][releases] ![Project Stage][project-stage-shield] [![License][license-shield]](LICENSE.md) diff --git a/src/main/java/net/Broken/Api/Controllers/GuildController.java b/src/main/java/net/Broken/Api/Controllers/GuildController.java index 783a55a..a28a0a6 100644 --- a/src/main/java/net/Broken/Api/Controllers/GuildController.java +++ b/src/main/java/net/Broken/Api/Controllers/GuildController.java @@ -33,7 +33,7 @@ public class GuildController { @GetMapping("inviteLink") public InviteLink getInviteLink() { - String link = MainBot.jda.setRequiredScopes("applications.commands").getInviteUrl(Permission.getPermissions(1636113579328L)); + String link = MainBot.jda.setRequiredScopes("applications.commands").getInviteUrl(Permission.getPermissions(1099511103319L)); return new InviteLink(link); }