Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into feat/arm64-support
Browse files Browse the repository at this point in the history
  • Loading branch information
book000 authored Aug 12, 2023
2 parents 1e65bcf + 27619b8 commit 53ed798
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/jaoafa/jdavcspeaker/Command/Cmd_Vcname.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void hooker(JDA jda, Guild guild,


void save(Member member, SlashCommandInteractionEvent event) {
if (!member.getId().equals("492088741167366144") && !member.hasPermission(Permission.ADMINISTRATOR)) {
if (!member.hasPermission(Permission.MANAGE_SERVER)) {
event.replyEmbeds(new EmbedBuilder()
.setTitle(":no_pedestrians: 実行する権限がありません!")
.setColor(LibEmbedColor.error)
Expand Down Expand Up @@ -90,7 +90,7 @@ void save(Member member, SlashCommandInteractionEvent event) {
}

void saveall(Guild guild, Member member, SlashCommandInteractionEvent event) {
if (!member.getId().equals("492088741167366144") && !member.hasPermission(Permission.ADMINISTRATOR)) {
if (!member.hasPermission(Permission.MANAGE_SERVER)) {
event.replyEmbeds(new EmbedBuilder()
.setTitle(":no_pedestrians: 実行する権限がありません!")
.setColor(LibEmbedColor.error)
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/jaoafa/jdavcspeaker/Command/Cmd_Vcspeaker.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class Cmd_Vcspeaker implements CmdSubstrate {
final EmbedBuilder NO_PERMISSION =
new EmbedBuilder()
.setDescription("""
あなたは管理者権限を所持していないため
あなたはサーバ管理権限を所持していないため
このサーバでVCSpeakerの設定をすることはできません。
""")
.setColor(LibEmbedColor.error);
Expand Down Expand Up @@ -72,7 +72,7 @@ public void hooker(JDA jda, Guild guild,
}

void addServer(Guild guild, GuildMessageChannel channel, Member member, SlashCommandInteractionEvent event) {
if (!member.hasPermission(Permission.ADMINISTRATOR)) {
if (!member.hasPermission(Permission.MANAGE_SERVER)) {
event.replyEmbeds(NO_PERMISSION.build()).queue();
return;
}
Expand Down Expand Up @@ -110,7 +110,7 @@ void addServer(Guild guild, GuildMessageChannel channel, Member member, SlashCom
}

void removeServer(Guild guild, Member member, SlashCommandInteractionEvent event) {
if (!member.hasPermission(Permission.ADMINISTRATOR)) {
if (!member.hasPermission(Permission.MANAGE_SERVER)) {
event.replyEmbeds(NO_PERMISSION.build()).queue();
return;
}
Expand All @@ -133,7 +133,7 @@ void removeServer(Guild guild, Member member, SlashCommandInteractionEvent event
}

void setNotifyChannel(Guild guild, Member member, SlashCommandInteractionEvent event) {
if (!member.hasPermission(Permission.ADMINISTRATOR)) {
if (!member.hasPermission(Permission.MANAGE_SERVER)) {
event.replyEmbeds(NO_PERMISSION.build()).queue();
return;
}
Expand Down Expand Up @@ -170,7 +170,7 @@ void setNotifyChannel(Guild guild, Member member, SlashCommandInteractionEvent e
}

void showDebugQueue(Member member, SlashCommandInteractionEvent event) {
if (!member.hasPermission(Permission.ADMINISTRATOR)) {
if (!member.hasPermission(Permission.MANAGE_SERVER)) {
event.replyEmbeds(NO_PERMISSION.build()).queue();
return;
}
Expand Down

0 comments on commit 53ed798

Please sign in to comment.