forked from jagrosh/MusicBot
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
39 additions
and
1,151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright 2021 Cosgy Dev ([email protected]). | ||
* Copyright 2023 Cosgy Dev ([email protected]). | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
|
@@ -14,20 +14,21 @@ | |
* limitations under the License. | ||
*/ | ||
|
||
package dev.cosgy.jmusicbot.slashcommands.admin; | ||
package dev.cosgy.jmusicbot.slashcommands.owner; | ||
|
||
import com.jagrosh.jdautilities.command.CommandEvent; | ||
import com.jagrosh.jdautilities.command.SlashCommandEvent; | ||
import com.jagrosh.jmusicbot.Bot; | ||
import dev.cosgy.jmusicbot.slashcommands.AdminCommand; | ||
import dev.cosgy.jmusicbot.slashcommands.OwnerCommand; | ||
import net.dv8tion.jda.api.entities.Guild; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author Kosugi_kun | ||
*/ | ||
public class ServerListCmd extends AdminCommand { | ||
public class ServerListCmd extends OwnerCommand { | ||
protected Bot bot; | ||
|
||
public ServerListCmd(Bot bot) { | ||
|
@@ -37,11 +38,6 @@ public ServerListCmd(Bot bot) { | |
|
||
@Override | ||
protected void execute(SlashCommandEvent event) { | ||
if (checkAdminPermission(event.getClient(), event)) { | ||
event.reply(event.getClient().getWarning() + "権限がないため実行できません。").queue(); | ||
return; | ||
} | ||
|
||
List<Guild> guilds = event.getJDA().getGuilds(); | ||
|
||
StringBuilder stringBuilder = new StringBuilder(); | ||
|
Oops, something went wrong.