Class MenuAction

java.lang.Object
de.chojo.jdautil.menus.MenuAction

public class MenuAction extends Object
  • Constructor Details

  • Method Details

    • send

      public void send(ILocalizer localizer, long id)
    • user

      public User user()
    • components

      public List<MenuEntry<?,?>> components()
    • forChannel

      public static MenuActionBuilder forChannel(MessageEmbed embed, MessageChannel channel)
      Create a new action for a callback
      Parameters:
      embed - message to send
      channel - the channel to send the message to
      Returns:
      new action builder
    • forChannel

      public static MenuActionBuilder forChannel(String message, MessageChannel channel)
      Create a new action for a callback
      Parameters:
      message - message to send
      channel - the channel to send the message to
      Returns:
      new action builder
    • forCallback

      public static MenuActionBuilder forCallback(MessageEmbed embed, IReplyCallback callback)
      Create a new action for a callback
      Parameters:
      embed - message to send
      callback - the callback to respond to
      Returns:
      new action builder
    • forCallback

      public static MenuActionBuilder forCallback(String message, IReplyCallback callback)
      Create a new action for a callback
      Parameters:
      message - message to send
      callback - the callback to respond to
      Returns:
      new action builder
    • forCallback

      public static MenuActionBuilder forCallback(MessageCreateData message, IReplyCallback callback)
      Create a new action for a callback
      Parameters:
      message - message to send
      callback - the callback to respond to
      Returns:
      new action builder
    • guild

      public Guild guild()