Releases
v0.2.0
Switched to API v10
Switched to 2021 edition of rust
Message.flags
is now an Option<MessageFlags>
Application.flags
is now an Option<ApplicationFlags>
SelectMenu.custom_id
is now a String
MessageResponse.ephemeral
has been replaced with flags
set_suppress_embeds(suppress)
was also added
Followup methods in CommandResponder
now have RestError
as error type
Added support for autocomplete interactions
Added values
and focused
to CommandInput
Added autocomplete(results)
to CommandResponder
Added support for attachment option type and improved attachment support
Added attachments
and keep_attachment(attachment_id)
to MessageResponse
Added attachments
to InteractionDataResolved
Added Attachment
, is_attachment()
and as_attachment()
to OptionValue
Added description
and set_description(description)
to File
Added support for sending files within the initial interaction response
Added support for modal interactions and text input components
Added MODAL_SUBMIT
to InteractionTypes
Added Modal
struct in commands
module
Added open_modal(modal)
to CommandResponder
Added TEXT_INPUT
to ComponentType
Added TextInput
and add_text_input(text_input)
to Component
Added interaction_type
, command_type
, component_type
, locale
and guild_locale
to CommandInput
Added interaction type checking methods to CommandInput
is_command()
is_chat_input()
is_user_context()
is_message_context()
is_component()
is_button()
is_select_menu()
is_autocomplete()
is_modal_submit()
Updated Discord object structs
Added ephemeral
and description
to Attachment
Added create_timestamp
to ThreadMetadata
Renamed APPLICATION_COMMAND
to CHAT_INPUT_COMMAND
and added CONTEXT_MENU_COMMAND
in MessageType
Added member
to MessageActivity
Added avatar
and communication_disabled_until
to GuildMember
Added icon
and unicode_emoji
to Role
Permissions
:
Added MANAGE_EVENTS
, SEND_MESSAGES_IN_THREADS
, START_EMBEDDED_ACTIVITIES
and MODERATE_MEMBERS
Renamed USE_PUBLIC_THREADS
and USE_PRIVATE_THREADS
to CREATE_PUBLIC_THREADS
and CREATE_PRIVATE_THREADS
respectively
UserFlags
:
DISCORD_EMPLOYEE
-> STAFF
PARTNERED_SERVER_OWNER
-> PARTNER
HYPESQUAD_EVENTS
-> HYPESQUAD
HOUSE_BRAVERY
-> HYPESQUAD_ONLINE_HOUSE_1
HOUSE_BRILLIANCE
-> HYPESQUAD_ONLINE_HOUSE_2
HOUSE_BALANCE
-> HYPESQUAD_ONLINE_HOUSE_3
EARLY_SUPPORTER
-> PREMIUM_EARLY_SUPPORTER
TEAM_USER
-> TEAM_PSEUDO_USER
EARLY_VERIFIED_BOT_DEVELOPER
-> VERIFIED_DEVELOPER
Added CERTIFIED_MODERATOR
and BOT_HTTP_INTERACTIONS
Started work on adding REST API methods to structs
Added rest
to CommandInput
Added bot_token
to Config
Added fetch(rest, channel_id, message_id)
, fetch_many(rest, channel_id, options)
, create(rest, channel_id, message)
, edit(rest, message)
, delete(rest)
and crosspost(rest)
to Message
Fixed some *_type
fields not being renamed when (de)serializing
Added skipping serialization on embeds
, components
, attachments
and allowed_mentions
if None
in MessageResponse
Added documentation wherever it was missing
You can’t perform that action at this time.