mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-21 21:41:30 +00:00
added kick command, made ban reason optional
This commit is contained in:
@@ -28,7 +28,6 @@ public class SetPostTargetCommand implements Command {
|
||||
private ChannelManagementService channelManagementService;
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public Result execute(CommandContext commandContext) {
|
||||
GuildChannel channel = (GuildChannel) commandContext.getParameters().getParameters().get(1);
|
||||
String targetName = (String) commandContext.getParameters().getParameters().get(0);
|
||||
|
||||
@@ -36,6 +36,8 @@ public class PostTarget {
|
||||
public static String JOIN_LOG = "joinlog";
|
||||
public static String LEAVE_LOG = "leavelog";
|
||||
public static String WARN_LOG = "warnlog";
|
||||
public static String KICK_LOG = "kicklog";
|
||||
public static String BAN_LOG = "banlog";
|
||||
|
||||
public static List<String> AVAILABLE_POST_TARGETS = Arrays.asList(JOIN_LOG, LEAVE_LOG, WARN_LOG);
|
||||
public static List<String> AVAILABLE_POST_TARGETS = Arrays.asList(JOIN_LOG, LEAVE_LOG, WARN_LOG, KICK_LOG, BAN_LOG);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user