Package kboyle.oktane.discord4j.module
Class DiscordModuleBase<CONTEXT extends DiscordCommandContext>
java.lang.Object
kboyle.oktane.core.module.ModuleBase<CONTEXT>
kboyle.oktane.discord4j.module.DiscordModuleBase<CONTEXT>
- Type Parameters:
- CONTEXT- The type of- DiscordCommandContextto use.
public abstract class DiscordModuleBase<CONTEXT extends DiscordCommandContext>
extends ModuleBase<CONTEXT>
Represents a base class to designate a class as a Discord based 
CommandModule.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected CommandResultRepresents anEmbedreply to aMessage.protected CommandResultRepresents a reply to aMessage.protected CommandResultRepresents a reply to aMessage.Methods inherited from class kboyle.oktane.core.module.ModuleBasecontext, exception, message, nop
- 
Constructor Details- 
DiscordModuleBasepublic DiscordModuleBase()
 
- 
- 
Method Details- 
replyRepresents a reply to aMessage. Does not mention anyone by default.- Parameters:
- content- The message to send.
- Returns:
- A CommandResultrepresenting a reply to the user.
 
- 
replyprotected CommandResult reply(Consumer<discord4j.core.spec.MessageCreateSpec> messageCreateSpecConsumer)Represents a reply to aMessage. Does not mention anyone by default.- Parameters:
- messageCreateSpecConsumer- The spec to use for the- Message.
- Returns:
- A CommandResultrepresenting a reply to the user.
 
- 
embedprotected CommandResult embed(Consumer<discord4j.core.spec.EmbedCreateSpec> embedCreateSpecConsumer)Represents anEmbedreply to aMessage. Does not mention anyone by default.- Parameters:
- embedCreateSpecConsumer- The spec to use for the- Embed.
- Returns:
- A CommandResultrepresenting anEmbedreply to the user.
 
 
-