Skip to content

Commit

Permalink
Allowed post and edit message for event manage roles
Browse files Browse the repository at this point in the history
  • Loading branch information
Alf-Melmac committed Jul 18, 2021
1 parent 731962f commit 8037327
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import static de.webalf.slotbot.util.bot.MessageUtils.deleteMessagesInstant;
import static de.webalf.slotbot.util.bot.MessageUtils.replyErrorMessage;
import static de.webalf.slotbot.util.permissions.BotPermissionHelper.Authorization.EVENT_MANAGE;

/**
* @author Alf
Expand All @@ -18,7 +19,8 @@
@Command(names = {"editMessage", "edit", "messageEdit"},
description = "Bearbeitet die übergebene Bot-Nachricht. Wurde z.B. vorher mit postMessage verschickt.",
usage = "<MessageId> <NeuerText>",
argCount = {2})
argCount = {2},
authorization = EVENT_MANAGE)
public class EditMessage implements DiscordCommand {
@Override
public void execute(Message message, List<String> args) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import java.util.List;

import static de.webalf.slotbot.util.bot.MessageUtils.deleteMessagesInstant;
import static de.webalf.slotbot.util.permissions.BotPermissionHelper.Authorization.EVENT_MANAGE;

/**
* @author Alf
Expand All @@ -17,7 +18,8 @@
@Command(names = {"postMessage", "post", "messagePost"},
description = "Sendet die übergebene Nachricht in den gleichen Kanal.",
usage = "<Nachricht>",
argCount = {1})
argCount = {1},
authorization = EVENT_MANAGE)
public class PostMessage implements DiscordCommand {
@Override
public void execute(Message message, List<String> args) {
Expand Down

0 comments on commit 8037327

Please sign in to comment.