Skip to content

Releases: SpaceEEC/crux_structs

0.2.3

17 Apr 19:09
0.2.3
e7bfb3b
Compare
Choose a tag to compare

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 to Emoji
    • discovery_splash, embed_channel_id, public_updates_channel_id,rules_channel_id, and widget_channel_id to Guild
    • enable_emoticons to Integration
    • premium_since to Member
  • Add public_flags to User [6363708]

Other

  • Coerce snowflakes in AuditLogEntry's options map [1de4afe]
  • Add t:Channel.type/0 [1bec8c3]
  • Add t:Integration.id_resolvable/0 [7a1c706]
  • Add view_guild_insights permission [3646a76]

0.2.2

21 Nov 11:51
0.2.2
dc3d264
Compare
Choose a tag to compare

Features

  • Add type field to Structs.Webhooks [221d699]
  • Add Structs.Integration module [5e671d5]
  • Add new audit log event types [5e671d5]

Fixes

  • Correctly link all t:Structs.Snowflake.t/0s everywhere [4831c69]

Other

  • Document properties for Rest.get_guild_vanity_invite/1 [43f1c61], [43f1c61]
  • Document that Structs.Webhook's token is optional [2fc1579]

0.2.1

14 Sep 09:49
0.2.1
53ba17c
Compare
Choose a tag to compare

Fixes

  • Convert MapSet to list to avoid deprecation warning [784a75f], [0457f76]

Features

  • Add :stream permission [6fe9dfc]
  • Add :preferred_locale, :premium_subscription_count, :premium_tier, :system_channel_flags, :system_channel_id to Guild [c9b4c95]
  • Add :mention_channels (cross posted channel mentions) :message_reference, :flags, :activity, :application to Message [01a63ff]
  • Add Snowflake and Snowflake.Parts modules [d87121c], [138cb5e]
  • Add :self_stream field to Voicestate [d0ffb0a]
  • Add id, position, and target resolving [138cb5e]
    • c:resolve_id/1 and resolve_id/1 to Structs
    • resolve_id/1 to Channel, Emoji, Guild, Member, Presence, Reaction, User, and VoiceState
    • resolve_position/1 to Channel and Role
    • resolve_target/1 to Overwrite

0.2.0

03 Apr 08:46
0.2.0
482d902
Compare
Choose a tag to compare

Breaking Changes

Crux.Structs.Permissions

Functions

  • permissions/0 is now flags/0 [74fa4c9]
  • permission_names/0 is now names/0 [74fa4c9]
  • permissions_all/0 is now all/0 [74fa4c9]
  • has/2, to_list/1 and to_map/1 no longer implicitly grant permissions when :administrator is set
    They now accept an additional parameter to let :administrator override [74fa4c9]

Types

  • permission_name/0 is now name/0 [74fa4c9]
  • permissions/0 is now resolvable/0 [3fe255e]

Notes

Additions

Fixes

  • Fix an edge case with Crux.Structs.Overwrites where administrator incorrectly grants permissionss [74fa4c9]
  • If present transform a guild_id property in Crux.Structs.Role [814bc3f]
  • Fix an edge-case where struct modules may not be loaded [d87e7d8]

0.1.6

05 Nov 17:11
0.1.6
ccf01b2
Compare
Choose a tag to compare

Additions

  • Add member property to Crux.Structs.Message [e6a129d]
  • Add rate_limit_per_user property to Crux.Structs.Channel [deded8e]
  • Add Crux.Structs.Webhook, Crux.Structs.AuditLog, Crux.Structs.AuditLogChange, and Crux.Structs.AuditLogEntry [ee8fbb1]

0.1.5

16 Aug 19:01
0.1.5
0a0c299
Compare
Choose a tag to compare

Additions

  • Add new :priority_speaker permission [fa97b7b]

Fixes

  • Do not "create" an already struct [ac0e937]

0.1.4

27 May 08:37
0.1.4
40dd712
Compare
Choose a tag to compare

Fixes

  • Pattern match permissions bitfield in Crux.Structs.Permissions._from/4 [0883e80]

Features

  • Allow structs to be "atomified" to avoid errors [9de7da2]

0.1.3

16 May 06:56
Compare
Choose a tag to compare

Additions

Add Crux.Structs.Permissions struct to help with working with permissions.

0.1.2

05 May 12:15
Compare
Choose a tag to compare

Fixes

  • Fix error in Crux.Structs.Guild.create/1 caused by incorrectly using Map.new/2 instead of Enum.map/2

0.1.1

04 May 15:36
Compare
Choose a tag to compare

Additions

  • Add to_mention to Channel, Role, User and Member.
  • Implement String.Chars (to_string/1) for Attachment, Channel, Embed, Emoji, Guild, Member, Message, Role, and User.
  • Add test for create/1, to_string/1, and to_mention/1 functions, as well as all Util functions.

Fixes

  • Set more reasonable default values for structs. For example Channel's permission_overwrites being %{} instead of nil.
  • Set correct values if initial values weren't present in create/1 functions.