-
Notifications
You must be signed in to change notification settings - Fork 26
Autoresponder Variables Docs
The ctx
class represents a custom context object containing information about the context of a command. This document outlines the features and usage of the ctx
class.
The ctx
class provides contextual information about the command execution.
- A string representing the command prefix.
- Placeholder attribute for storing the executed command.
- A token string for authentication purposes.
- An instance of the
JinjaChannel
class representing the command's channel.
- An instance of the
JinjaGuild
class representing the command's guild.
- An instance of the
JinjaMember
class representing the author of the command.
- An instance of the
JinjaMessage
class representing the original message.
- An instance of the
bot
class providing bot-related attributes and methods.
- Sends a message to the channel associated with the context.
The JinjaGuild
class is a custom wrapper around the discord.Guild
class, providing convenient methods and properties for interacting with guild-related data. This document outlines the features and usage of the JinjaGuild
class.
The JinjaGuild
class allows you to access various properties and methods related to a guild (server) in Discord.
- Get the ID of the guild.
- Get the name of the guild.
- Get the URL of the guild's icon.
- Get a
Member
instance representing the guild owner.
- Get the number of members in the guild.
- Get the guild's description.
- Get the URL of the guild's banner.
- Get the vanity URL of the guild.
- Get the premium tier of the guild.
- Get the count of premium subscriptions in the guild.
- Get the preferred locale of the guild.
- Get the AFK timeout of the guild.
- Get a list of
Member
instances representing guild members.
- Get a list of
Role
instances representing guild roles.
- Get the URL of the guild's icon.
- Get the URL of the guild's splash image.
- Get the URL of the guild's discovery splash image.
- Get a
Member
instance representing a member by their ID.
- Get a
Role
instance representing a role by its ID.
create_role(name: str, permissions: discord.Permissions, color: discord.Colour, hoist: bool, mentionable: bool, reason: str) -> JinjaRole
- Create a role in the guild and return a
Role
instance.
create_voice_channel(name: str, overwrites: dict[Member | Role, discord.PermissionOverwrite], category: Channel, reason: str) -> JinjaChannel
- Create a voice channel in the guild and return a
Channel
instance.
create_text_channel(name: str, overwrites: dict[Member | Role, discord.PermissionOverwrite], category: Channel, reason: str) -> JinjaChannel
- Create a text channel in the guild and return a
Channel
instance.
- Get a
Channel
instance representing a channel by its ID.
The JinjaMember
class is a custom wrapper around the discord.Member
and discord.User
classes, providing convenient methods and properties for interacting with member-related data. This document outlines the features and usage of the JinjaMember
class.
The JinjaMember
class allows you to access various properties and methods related to a member in a guild (server) on Discord.
- Get the ID of the member.
- Get the name of the member.
- Get a mention for the member.
- Get the nickname of the member in the guild (if applicable).
- Get the display name of the member, which considers nicknames.
- Get the URL of the member's avatar.
- Kick the member from the guild. Requires appropriate permissions.
- Ban the member from the guild. Requires appropriate permissions.
- Unban the member from the guild. Requires appropriate permissions.
- Add a role to the member. Requires appropriate permissions.
- Remove a role from the member. Requires appropriate permissions.
The JinjaMessage
class is a custom wrapper around the discord.Message
class, providing convenient methods and properties for interacting with message-related data. This document outlines the features and usage of the JinjaMessage
class.
The JinjaMessage
class allows you to access various properties and methods related to a message in a Discord channel.
- Get the ID of the message.
- Get the content of the message.
- Get a
JinjaMember
instance representing the author of the message.
- Get a
JinjaChannel
instance representing the channel where the message was sent.
- Get a
JinjaGuild
instance representing the guild (server) where the message was sent.
- Delete the message. Requires appropriate permissions.
- Pin the message. Requires appropriate permissions.
The JinjaRole
class is a custom wrapper around the discord.Role
class, providing convenient methods and properties for interacting with role-related data. This document outlines the features and usage of the JinjaRole
class.
The JinjaRole
class allows you to access various properties and methods related to a role in a guild (server) on Discord.
- Get the ID of the role.
- Get the name of the role.
- Get a mention for the role.
- Get the color of the role.
- Get the position of the role.
- Get whether the role is hoisted.
- Get whether the role is managed.
- Get whether the role is mentionable.
- Get the permissions of the role.
- Get a
JinjaGuild
instance representing the guild where the role belongs.
- Get a list of
JinjaMember
instances representing members with the role.
- Delete the role. Requires appropriate permissions.
edit(reason: str = None, permissions: discord.Permissions = discord.utils.MISSING, color: discord.Color = discord.utils.MISSING, hoist: bool = discord.utils.MISSING, mentionable: bool = discord.utils.MISSING, name: str = discord.utils.MISSING) -> JinjaRole | None
- Edit the role. Requires appropriate permissions. Returns a
JinjaRole
instance representing the updated role, orNone
if the update fails.
The utils
class provides utility methods and attributes from the discord.utils
module in discord.py
. This document outlines the features and usage of the utils
class.
The utils
class offers convenient utility methods and attributes to simplify various tasks in your Discord bot.
- A sentinel value used to indicate a missing value or default argument.
- Returns the first item in the iterable that meets the given attributes. Returns
None
if no matching item is found.
- Returns the first item in the iterable that satisfies the predicate. Returns
None
if no item satisfies the predicate.
The discord
class acts as a custom module wrapper for various Discord-related classes and utilities. This document outlines the features and usage of the discord
class.
The discord
class provides access to essential classes and utilities for interacting with Discord entities in your bot.
- An instance of the
utils
class providing utility methods and attributes from thediscord.utils
module. See classutils
- A class representing an embed object for rich messages. See
discord.Embed
for details.
- A class representing Discord permissions. See
discord.Permissions
for details.
- A class representing color values for embeds. See
discord.Colour
for details.
- A class representing permission overwrites for channels. See
discord.PermissionOverwrite
for details.
- A class representing allowed mentions settings for messages. See
discord.AllowedMentions
for details.
- A class representing a generic Discord object. See
discord.Object
for details.
The http
class provides attributes for managing HTTP routes, tokens, and sessions. This document outlines the features and usage of the http
class.
The http
class offers attributes to manage HTTP-related settings and sessions.
- A placeholder attribute for managing HTTP routes. (Note: Specific usage and implementation are not provided in the documentation.)
- A token string for authentication purposes.
- A placeholder attribute for managing HTTP sessions. (Note: Specific usage and implementation are not provided in the documentation.)
The bot
class represents a custom bot module with various attributes and methods for managing bot-related data and interactions. This document outlines the features and usage of the bot
class.
The bot
class provides attributes and methods for managing bot-related data and actions.
- An instance of the
http
class, offering HTTP-related attributes and settings.
- A token string for authentication purposes.
- A string describing the bot user.
- A list of guilds (servers) the bot is a member of.
- A list of emojis available to the bot.
- A list of users the bot can interact with.
- A list of channels the bot can interact with.
- A list of voice clients managed by the bot.
- Get a value from the database based on the provided key.
- Set a value in the database with the provided key.
- Delete a value from the database based on the provided key.
- Update a value in the database based on the provided key.
- Placeholder method to run the bot. (Specific implementation details are not provided.)
- Placeholder asynchronous method to start the bot. (Specific implementation details are not provided.)