Package de.presti.ree6.commands.impl.mod
Class Mute
java.lang.Object
de.presti.ree6.commands.impl.mod.Mute
- All Implemented Interfaces:
ICommand
A command to mute a user.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]getAlias()Aliases of the current Command.net.dv8tion.jda.api.interactions.commands.build.CommandDataA CommandData implementation for JDAs SlashCommand Interaction Implementation.voidmuteMember(net.dv8tion.jda.api.entities.Member executor, net.dv8tion.jda.api.entities.Member member, Duration duration, String reason, CommandEvent commandEvent) Mutes a Member.voidonPerform(CommandEvent commandEvent) Will be fired when the Command is called.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.presti.ree6.commands.interfaces.ICommand
onASyncPerform
-
Constructor Details
-
Mute
public Mute()
-
-
Method Details
-
onPerform
Description copied from interface:ICommandWill be fired when the Command is called. -
getCommandData
public net.dv8tion.jda.api.interactions.commands.build.CommandData getCommandData()Description copied from interface:ICommandA CommandData implementation for JDAs SlashCommand Interaction Implementation.- Specified by:
getCommandDatain interfaceICommand- Returns:
- the created CommandData.
-
getAlias
Description copied from interface:ICommandAliases of the current Command. -
muteMember
public void muteMember(net.dv8tion.jda.api.entities.Member executor, net.dv8tion.jda.api.entities.Member member, Duration duration, String reason, CommandEvent commandEvent) Mutes a Member.- Parameters:
executor- The Executor.member- The Member to mute.duration- The duration of the mute.reason- The reason of the mute.commandEvent- The CommandEvent.
-