Available on crate feature
builder
only.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.
Structs§
- A builder to add parameters when using
GuildId::add_member
. - A builder to manage the allowed mentions on a message, used by the
ChannelId::send_message
andChannelId::edit_message
methods. - A builder for constructing an invite link with custom OAuth2 scopes.
- A builder for creating a button component in a message
- A builder for creating a new
GuildChannel
in aGuild
. - A builder for creating a new
Command
. - A builder for creating a new
CommandOption
. - A builder for creating an
CommandPermission
. - A builder to create an embed in a message
- A builder to create the author data of an emebd. See
CreateEmbed::author
- A builder to create the footer data for an embed. See
CreateEmbed::footer
- A builder for creating a
GuildWelcomeChannel
. - A builder for creating an input text component in a modal
- A builder to create a
RichInvite
for use viaGuildChannel::create_invite
. - A builder to specify the contents of an send message request, primarily meant for use through
ChannelId::send_message
. - A builder for creating a select menu component in a message
- A builder for creating an option of a select menu component in a message
- Builder for creating a stage instance
- A builder to create a guild sticker
- Discord docs:
- You can add new attachments and edit existing ones using this builder.
- A builder for creating or editing guild AutoMod rules.
- A builder to edit a
GuildChannel
for use viaGuildChannel::edit
. - A builder for creating several
CommandPermission
. - A builder to optionally edit certain fields of a guild
- A builder to edit the welcome screen of a guild
- A builder to specify the fields to edit in a
GuildWidget
. - A builder which edits the properties of a
Member
, to be used in conjunction withMember::edit
. - A builder to specify the fields to edit in an existing message.
- A builder to edit the current user’s settings, to be used in conjunction with
CurrentUser::edit
. - A builder to create or edit a
Role
for use via a number of model methods. - Edits a
StageInstance
. - A builder to create or edit a
Sticker
for use via a number of model methods. - A builder which edits a user’s voice state, to be used in conjunction with
GuildChannel::edit_voice_state
. - A builder to specify the fields to edit in an existing
Webhook
’s message. - A builder to create the content for a
Webhook
’s execution. - Builds a request to the API to retrieve messages.
Enums§
- A builder for creating a components action row in a message.
Traits§
- Builder
http
Common trait for all HTTP request builders in this module.