Releases
v0.4.0
Added support for auto-populated Select Menus
Added default_values
and add_default_value(id, value_type)
to SelectMenu
Added DefaultValue
and DefaultValueType
Added resolved
to Message
Added support for monetization
Added entitlements
to CommandInput
Added premium_required()
to CommandResponder
Added SKU
, SKUType
, SKUFlags
, Entitlement
, EntitlementType
, ListEntitlementsOptions
, TestEntitlementOptions
and EntitlementOwnerType
structs/enums
Added rest API functions to SKU
list_skus(rest, application_id)
Added rest API functions to Entitlement
list_entitlements(rest, application_id, options)
create_test_entitlement(rest, application_id, options)
delete_test_entitlement(rest, application_id)
consume_entitlement(rest, application_id)
Added support for voice messages (thanks @flazepe !)
Added set_as_voice_message()
to MessageResponse
Added duration_secs
and waveform
to Attachment
Added duration_secs
, waveform
, set_duration(duration_secs)
and set_waveform(waveform)
to File
Added IS_VOICE_MESSAGE
to MessageFlags
Added support for user-installable apps
Added authorizing_integration_owners
and context
to CommandInput
Added integration_types
and contexts
to Command
Removed dm_permissions
from Command
in favor of contexts
Added IntegrationType
, IntegrationOwners
and InteractionContextType
structs/enums
Added rest API functions related to pins
Added functions to Channel
get_pinned_messages(rest)
pin_message(rest, message_id)
unpin_message(rest, message_id)
Added functions to Message
Added support for polls
Added poll
and set_poll(poll)
to MessageResponse
Added Poll
, PollMedia
, PollAnswer
, PollLayoutType
, PollResults
, PollAnswerCount
, PollCreateRequest
and PollVoters
structs/enums
Added rest API functions related to threads
Added ThreadCreateOptions
, ThreadMemberOptions
, ThreadListOptions
and ThreadListResponse
structs
Added functions to Channel
start_thread(rest, options)
join_thread(rest)
add_thread_member(rest, user_id)
leave_thread(rest)
remove_thread_member(rest, user_id)
get_thread_member(rest, user_id, options)
list_thread_members(rest, options)
list_public_archived_threads(rest, options)
list_private_archived_threads(rest, options)
list_joined_private_archived_threads(rest, options)
Added functions to Message
start_thread(rest, options)
Fixed SelectOption::set_default
's argument and return types not being consistent with the rest of the functions
Added channel
and application_id
to CommandInput
Changed app_permissions
in CommandInput
from Option<Permissions>
to Permissions
Renamed enum variants in AllowedMentionType
to upper-case
Updated Discord structs
Permissions
MANAGE_EMOJIS_AND_STICKERS
renamed to MANAGE_GUILD_EXPERSSIONS
START_EMBEDDED_ACTIVITIES
renamed to USE_EMBEDDED_ACTIVITIES
Added VIEW_CREATOR_MONETIZATION_ANALYTICS
, USE_SOUNDBOARD
, USE_EXTERNAL_SOUNDS
, SEND_VOICE_MESSAGES
, CREATE_GUILD_EXPRESSIONS
and CREATE_EVENTS
Added message
to Channel
Added flags
to Attachment
Added AttachmentFlags
bitflags
Application
Added bot
, guild
, approximate_guild_count
, redirect_uris
, interactions_endpoint_url
, tags
, integration_types
, integration_types_config
Changed bot_public
to Option<bool>
Changed bot_require_code_grant
to Option<bool>
Changed verify_key
to Option<String>
Added ApplicationIntegrationTypesConfig
and ApplicationIntegrationTypesConfigValue
structs
Message
Added interaction_metadata
Added MessageInteractionMetadata
struct
Removed interaction
Removed MessageInteraction
struct
Added APPLICATION_AUTO_MODERATION_RULE_CREATE_BADGE
to ApplicationFlags
Internal changes
bitflags, syn and devise updated to new major versions
Changed Into<ComponentType> for SelectMenuType
to From<SelectMenuType> for ComponentType
Changed description
in Command
to a wrapper type that allows the string to be optional via macro
Moved message related structs to their own file
You can’t perform that action at this time.