Package-level declarations
Types
Sealed interface representing matching strategies for autocomplete.
Type alias representing a mutable string keyed map.
Type alias representing a mutable map with string keys and values.
Type alias representing a map with string keys and values.
Properties
Whether the message author is a bot.
Provides direct access to the map KordEx registers for Event.customContext.
Retrieve the option that's currently focused in the client.
Whether this message was sent from a different guild's followed announcement channel.
Whether this is an ephemeral message from the Interactions system.
Whether this message was published to the guilds that are following its channel.
The max number of suggestions allowed.
When isCrossPost, whether the source message has been deleted from the original guild.
The user's Discord profile URL.
Whether this message's embeds should be serialized.
Because it hasn't been called "Moderate Members" since the DMD testing finished.
A more sensible name than communicationDisabledUntil.
Functions
Convenience wrapper for sending an ephemeral ack, optionally deferred, with less characters.
Add a reaction to this message, using the Unicode emoji represented by the given string.
Checks whether the bot globally has at least requiredPermissions on this guild.
Checks whether the bot has at least requiredPermissions in this GuildChannel.
Checks if this Member can interact (kick/ban/..) with another Member
Checks if this Member can interact (delete/edit/assign/..) with the specified Role.
Checks whether a Role can interact with another Role by comparing their rawPositions.
Capitalize words in this string according to the given locale. Uses the Java default locale if none is provided.
Deletes a message, catching and ignoring an HTTP 404 (Not Found) exception.
Deletes a public follow-up, catching and ignoring an HTTP 404 (Not Found) exception.
Remove a reaction from this message belonging to the bot, using a guild's custom emoji object.
Remove a reaction from this message belonging to the bot, using the Unicode emoji represented by the given string.
Remove a reaction from this message, using a guild's custom emoji object.
Remove a reaction from this message, using the Unicode emoji represented by the given string.
Edit this webhook using the token stored within the object.
Convenience function for setting this.emoji based on a given guild custom emoji.
Convenience function for setting this.emoji based on a given reaction emoji.
Convenience function for setting this.emoji based on a given Unicode emoji.
Ensure a webhook is created for the bot in a given channel, and return it.
Deserializes the value of an environmental variable, loading from a .env file in the current working directory if possible.
Execute this webhook using the token stored within the object. If threadId is provided, execute the webhook in that thread.
Execute this webhook using the token stored within the object, ignoring the response. If threadId is provided, execute the webhook in that thread.
Wrapper function for the String.toReaction function.
Get the corresponding category channel for the given channel.
Generate the jump URL for this message.
Generate the jump URL for this channel.
Utility function for getting a key from the given String-keyed map, attempting to cast it to the given generic type, T. Will return the provided default value if the key is missing or the value cannot be cast.
Utility function for getting a key from the given String-keyed map, attempting to cast it to the given generic type, T. Will return null if the key is missing or the value cannot be cast.
Convenience function that returns the thread's parent message, if it was created from one.
Get the corresponding top guild channel for the given channel.
Convenience function to retrieve a user's top Role.
Check if the given RestRequestException does not have a matching HttpStatusCode.
Check if the given RestRequestException does not have a matching integer status code.
Convenience function to check whether a guild member has a permission.
Convenience function to check whether a guild member has all of the given permissions.
Check if the given RestRequestException has a matching integer status code.
Check whether the given user is null or a bot.
Wrapper for org.koin.dsl.module that immediately loads the module for the current Koin instance.
Parse a string into a boolean, based on the context's detected locale.
Parse a string into a boolean, based on the provided locale object.
Given a guild channel, attempt to calculate the effective permissions for the member corresponding with the given ID, checking the parent channel if this one happens to be a thread.
Given a guild channel, attempt to calculate the effective permissions for given user, checking the parent channel if this one happens to be a thread.
Convenience function to remove a member's nickname, skipping the edit DSL.
Convenience function to remove the timeout from a member, skipping the edit DSL.
Attempt to retrieve the message that the current message is in reply to, if any.
Check that this message happened in either the given channel or a DM, or that the author is at least a given role.
Check that this message happened in a guild channel.
Respond to a message in the channel it was sent to, mentioning the author.
Run a block of code within a coroutine scope, defined by a given dispatcher.
Retrieves the member of the bot itself on this GuildBehavior.
Convenience function to set a member's nickname, skipping the edit DSL.
Use a collection (like a list) to populate an autocomplete interaction, filtering as described by the provided strategy.
Use a map to populate an autocomplete interaction, filtering as described by the provided strategy.
Use a collection (like a list) to populate an autocomplete interaction, filtering as described by the provided strategy.
Use a map to populate an autocomplete interaction, filtering as described by the provided strategy.
Use a collection (like a list) to populate an autocomplete interaction, filtering as described by the provided strategy.
Use a map to populate an autocomplete interaction, filtering as described by the provided strategy.
Use a collection (like a list) to populate an autocomplete interaction, filtering as described by the provided strategy.
Use a map to populate an autocomplete interaction, filtering as described by the provided strategy.
Use a collection (like a list) to populate an autocomplete interaction, filtering as described by the provided strategy.
Use a map to populate an autocomplete interaction, filtering as described by the provided strategy.
Retrieve the text from the footer of an embed builder, or null if no text was set.
Convert the given DateTimePeriod to a Duration based on the given timezone, relative to the current system time.
Transform the given GuildEmoji into a ReactionEmoji.
Transform a String containing an emoji into a ReactionEmoji.
Given a ChannelType, return a string representing its translation key.
Given a NsfwLevel, return a string representing its translation key.
Given a CommandContext, translate the ChannelType to a human-readable string based on the context's locale.
Given a locale, translate the ChannelType to a human-readable string.
Given a CommandContext, translate the NsfwLevel to a human-readable string based on the context's locale.
Given a locale, translate the NsfwLevel to a human-readable string.
Given a CommandContext, translate the Permission to a human-readable string based on the context's locale.
Given a locale, translate the Permission to a human-readable string.
Return the first received event that matches the condition.
Wait for a message, using the given timeout (in milliseconds ) and filter function.
Wait for a message from a user, using the given timeout (in milliseconds) and extra filter function.
Wait for a message in this channel, using the given timeout (in milliseconds) and extra filter function.
Wait for a message in reply to this one, using the given timeout (in milliseconds) and extra filter function.
Wait for a message by the user that invoked this command, in the channel it was invoked in, using the given timeout (in milliseconds) and extra filter function.