Releases: SpaceEEC/crux_structs
Releases · SpaceEEC/crux_structs
0.2.3
Features
Modules
- Add
VoiceRegion
[729d3d1] - Add
GuildPreview
[1d7441f] - Add
BitField
and modules implementing it [4e16729] -
User.Flags
-
Guild.SystemChannelFlags
-
Message.Flags
-
Presence.ActivityFlags
Fields
- Add [eb1f55b]
-
available
toEmoji
-
discovery_splash
,embed_channel_id
,public_updates_channel_id
,rules_channel_id
, andwidget_channel_id
toGuild
-
enable_emoticons
toIntegration
-
premium_since
toMember
- Add
public_flags
toUser
[6363708]
Other
0.2.2
0.2.1
Fixes
Features
- Add
:stream
permission [6fe9dfc] - Add
:preferred_locale
,:premium_subscription_count
,:premium_tier
,:system_channel_flags
,:system_channel_id
toGuild
[c9b4c95] - Add
:mention_channels
(cross posted channel mentions):message_reference
,:flags
,:activity
,:application
toMessage
[01a63ff] - Add
Snowflake
andSnowflake.Parts
modules [d87121c], [138cb5e] - Add
:self_stream
field toVoicestate
[d0ffb0a] - Add id, position, and target resolving [138cb5e]
-
c:resolve_id/1
andresolve_id/1
toStructs
-
resolve_id/1
toChannel
,Emoji
,Guild
,Member
,Presence
,Reaction
,User
, andVoiceState
-
resolve_position/1
toChannel
andRole
-
resolve_target/1
toOverwrite
0.2.0
Breaking Changes
Crux.Structs.Permissions
Functions
permissions/0
is nowflags/0
[74fa4c9]permission_names/0
is nownames/0
[74fa4c9]permissions_all/0
is nowall/0
[74fa4c9]has/2
,to_list/1
andto_map/1
no longer implicitly grant permissions when:administrator
is set
They now accept an additional parameter to let:administrator
override [74fa4c9]
Types
Notes
- Document new
news
type inCrux.Structs.Channel
[02147b7] [discordapp/discord-api-docs#881
]
Additions
- Add
activities
toCrux.Structs.Presence
[0c0040f] [discordapp/discord-api-docs#707
] - Add
client_status
toCrux.Structs.Presence
[a17425e] [discordapp/discord-api-docs#829
] - Add
max_presences
,max_members
,vanity_url_code
,description
, andbanner
toCrux.Structs.Guild
[bba6ba4] [discordapp/discord-api-docs#868
] - Add
new/0
toCrux.Structs.Permissions
by defaultingpermissions
to 0 [fd2a5da]
Fixes
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
Additions
- Add
to_mention
toChannel
,Role
,User
andMember
. - Implement
String.Chars
(to_string/1
) forAttachment
,Channel
,Embed
,Emoji
,Guild
,Member
,Message
,Role
, andUser
. - Add test for
create/1
,to_string/1
, andto_mention/1
functions, as well as allUtil
functions.
Fixes
- Set more reasonable default values for structs. For example
Channel
'spermission_overwrites
being%{}
instead ofnil
. - Set correct values if initial values weren't present in
create/1
functions.