Package dev.sympho.bot_utils.event
Interface RepliableContext
- All Superinterfaces:
AccessContext,AccessValidator,ChannelAccessContext,ChannelAccessValidator,ChannelEventContext,EventContext
- All Known Subinterfaces:
ApplicationCommandEventContext,ButtonEventContext,ComponentEventContext,DeferrableInteractionEventContext,ModalEventContext,SlashCommandEventContext
- All Known Implementing Classes:
AbstractRepliableContext
Context for an event that can be replied to.
- Since:
- 1.0
- Version:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionreplies()Retrieves the initial reply manager for this instance.default ReplyMonoreply()default ReplyMonoreply(EmbedCreateSpec... embeds) reply(MessageCreateSpec spec) default ReplyMonoMethods inherited from interface dev.sympho.bot_utils.access.AccessContext
asGuild, guild, guildId, isPrivate, member, member, userMethods inherited from interface dev.sympho.bot_utils.access.ChannelAccessContext
asUser, channel, channelIdMethods inherited from interface dev.sympho.bot_utils.event.ChannelEventContext
belongs, belongs, belongs, belongs, hasAccess, hasAccess, validate, validatorMethods inherited from interface dev.sympho.bot_utils.event.EventContext
client, event, validate
-
Method Details
-
replies
Retrieves the initial reply manager for this instance.- Returns:
- The reply manager.
- API Note:
- Note that the manager may expire after a certain time on some types
of events; use
ReplyManager.detach()to obtain a long-term manager before doing processing that may take a long time. This is not necessary if the specific event type guarantees a non-expiring manager.
-
reply
Sends a reply, as if by callingreplies().add().Sending more than one causes the replies to be chained (each replying to the previous one).
- Returns:
- A reply builder Mono that can be configured with the target reply then subscribed to send the reply.
- See Also:
-
reply
Sends a reply, as if by callingreplies().add().Sending more than one causes the replies to be chained (each replying to the previous one).
- Parameters:
content- The message content.- Returns:
- A reply builder Mono initialized with the given content.
- See Also:
-
reply
Sends a reply, as if by callingreplies().add().Sending more than one causes the replies to be chained (each replying to the previous one).
- Parameters:
embeds- The message embeds.- Returns:
- A reply builder Mono initialized with the given embeds.
- See Also:
-
reply
Sends a reply, as if by callingreplies().add().Sending more than one causes the replies to be chained (each replying to the previous one).
- Parameters:
spec- The message specification.- Returns:
- The message.
- See Also:
-
reply
Sends a reply, as if by callingreplies().add().Sending more than one causes the replies to be chained (each replying to the previous one).
- Parameters:
spec- The message specification.- Returns:
- The message.
- See Also:
-
reply
Sends a reply, as if by callingreplies().add().Sending more than one causes the replies to be chained (each replying to the previous one).
- Parameters:
spec- The message specification.- Returns:
- The message.
- See Also:
-
reply
Sends a reply, as if by callingreplies().add().Sending more than one causes the replies to be chained (each replying to the previous one).
- Parameters:
spec- The message specification.- Returns:
- The message.
- See Also:
-