Class Unmute

java.lang.Object
de.presti.ree6.commands.impl.mod.Unmute
All Implemented Interfaces:
ICommand

public class Unmute extends Object implements ICommand
A command to unmute a user.
  • Field Summary

    Fields inherited from interface de.presti.ree6.commands.interfaces.ICommand

    log
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Aliases of the current Command.
    net.dv8tion.jda.api.interactions.commands.build.CommandData
    A CommandData implementation for JDAs SlashCommand Interaction Implementation.
    void
    onPerform(CommandEvent commandEvent)
    Will be fired when the Command is called.
    void
    unmuteMember(net.dv8tion.jda.api.entities.Member executor, net.dv8tion.jda.api.entities.Member member, CommandEvent commandEvent)
    Unmute a Member.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.presti.ree6.commands.interfaces.ICommand

    onASyncPerform
  • Constructor Details

    • Unmute

      public Unmute()
  • Method Details

    • onPerform

      public void onPerform(CommandEvent commandEvent)
      Description copied from interface: ICommand
      Will be fired when the Command is called.
      Specified by:
      onPerform in interface ICommand
      Parameters:
      commandEvent - the Event, with every needed data.
    • getCommandData

      public net.dv8tion.jda.api.interactions.commands.build.CommandData getCommandData()
      Description copied from interface: ICommand
      A CommandData implementation for JDAs SlashCommand Interaction Implementation.
      Specified by:
      getCommandData in interface ICommand
      Returns:
      the created CommandData.
    • getAlias

      public String[] getAlias()
      Description copied from interface: ICommand
      Aliases of the current Command.
      Specified by:
      getAlias in interface ICommand
      Returns:
      the Aliases.
    • unmuteMember

      public void unmuteMember(net.dv8tion.jda.api.entities.Member executor, net.dv8tion.jda.api.entities.Member member, CommandEvent commandEvent)
      Unmute a Member.
      Parameters:
      executor - The Executor.
      member - The Member to unmute.
      commandEvent - The CommandEvent.