Expand description
A set of builders used to make using methods on certain structs simpler to use.
These are used when not all parameters are required, all parameters are optional, and/or sane default values for required parameters can be applied by a builder.
Re-exports§
pub use create_poll::CreatePoll;
pub use create_poll::CreatePollAnswer;
Modules§
Structs§
- AddMember
- A builder to add parameters when using
GuildId::add_member
. - Autocomplete
Choice - Create
Allowed Mentions - A builder to manage the allowed mentions on a message, used by the
ChannelId::send_message
andChannelId::edit_message
methods. - Create
Attachment - A builder for creating a new attachment from a file path, file data, or URL.
- Create
Autocomplete Response - Discord docs
- Create
BotAuth Parameters - A builder for constructing an invite link with custom OAuth2 scopes.
- Create
Button - A builder for creating a button component in a message
- Create
Channel - A builder for creating a new
GuildChannel
in aGuild
. - Create
Command - A builder for creating a new
Command
. - Create
Command Option - A builder for creating a new
CommandOption
. - Create
Command Permission - A builder for creating an
CommandPermission
. - Create
Embed - A builder to create an embed in a message
- Create
Embed Author - A builder to create the author data of an embed. See
CreateEmbed::author
- Create
Embed Footer - A builder to create the footer data for an embed. See
CreateEmbed::footer
- Create
Forum Post - Discord docs.
- Create
Forum Tag - Discord docs
- Create
Guild Welcome Channel - A builder for creating a
GuildWelcomeChannel
. - Create
Input Text - A builder for creating an input text component in a modal
- Create
Interaction Response Followup - Discord docs
- Create
Interaction Response Message - Discord docs.
- Create
Invite - A builder to create a
RichInvite
for use viaGuildChannel::create_invite
. - Create
Message - A builder to specify the contents of an send message request, primarily meant for use
through
ChannelId::send_message
. - Create
Modal - Discord docs.
- Create
Scheduled Event - Discord docs
- Create
Select Menu - A builder for creating a select menu component in a message
- Create
Select Menu Option - A builder for creating an option of a select menu component in a message
- Create
Stage Instance - Builder for creating a stage instance
- Create
Sticker - A builder to create a guild sticker
- Create
Thread - Discord docs:
- Create
Webhook - Discord docs
- Edit
Attachments - You can add new attachments and edit existing ones using this builder.
- Edit
Auto ModRule - A builder for creating or editing guild AutoMod rules.
- Edit
Channel - A builder to edit a
GuildChannel
for use viaGuildChannel::edit
. - Edit
Command Permissions - A builder for creating several
CommandPermission
. - Edit
Guild - A builder to optionally edit certain fields of a guild
- Edit
Guild Welcome Screen - A builder to edit the welcome screen of a guild
- Edit
Guild Widget - A builder to specify the fields to edit in a
GuildWidget
. - Edit
Interaction Response - Discord docs
- Edit
Member - A builder which edits the properties of a
Member
, to be used in conjunction withMember::edit
. - Edit
Message - A builder to specify the fields to edit in an existing message.
- Edit
Profile - A builder to edit the current user’s settings, to be used in conjunction with
CurrentUser::edit
. - Edit
Role - A builder to create or edit a
Role
for use via a number of model methods. - Edit
Scheduled Event - Discord docs
- Edit
Stage Instance - Edits a
StageInstance
. - Edit
Sticker - A builder to create or edit a
Sticker
for use via a number of model methods. - Edit
Thread - Discord docs.
- Edit
Voice State - A builder which edits a user’s voice state, to be used in conjunction with
GuildChannel::edit_voice_state
. - Edit
Webhook - Discord docs
- Edit
Webhook Message - A builder to specify the fields to edit in an existing
Webhook
’s message. - Execute
Webhook - A builder to create the content for a
Webhook
’s execution. - GetEntitlements
- Builds a request to fetch active and ended
Entitlement
s. - GetMessages
- Builds a request to the API to retrieve messages.
Enums§
- Create
Action Row - A builder for creating a components action row in a message.
- Create
Interaction Response - Discord docs.
- Create
Select Menu Kind - Discord docs.
Traits§
- Builder
- Common trait for all HTTP request builders in this module.