🚑 Fix permission
This commit is contained in:
parent
a3f6adf6f5
commit
1b3bd15aaf
@ -33,11 +33,10 @@ public class GuildController {
|
|||||||
|
|
||||||
@GetMapping("inviteLink")
|
@GetMapping("inviteLink")
|
||||||
public InviteLink getInviteLink() {
|
public InviteLink getInviteLink() {
|
||||||
String link = MainBot.jda.getInviteUrl(Permission.ADMINISTRATOR);
|
String link = MainBot.jda.setRequiredScopes("applications.commands").getInviteUrl(Permission.getPermissions(1636113579328L));
|
||||||
return new InviteLink(link);
|
return new InviteLink(link);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@GetMapping("/{guildId}/voiceChannels")
|
@GetMapping("/{guildId}/voiceChannels")
|
||||||
@PreAuthorize("isInGuild(#guildId)")
|
@PreAuthorize("isInGuild(#guildId)")
|
||||||
public List<Channel> getVoiceChannels(@PathVariable String guildId, Authentication authentication) {
|
public List<Channel> getVoiceChannels(@PathVariable String guildId, Authentication authentication) {
|
||||||
|
Loading…
Reference in New Issue
Block a user