Skip to content

Implement permission changes

Mateusz Brawański requested to merge github/fork/Lulalaby/patch-4 into master

Created by: Lulalaby

Update Permissions to include newly documented Permission

Summary

Implements the following permissions to DSharpPlus.Permissions:

  • SEND_MESSAGES_IN_THREADS
  • CREATE_PUBLIC_THREADS (Replaces USE_PUBLIC_THREADS )
  • CREATE_PRIVATE_THREADS (Replaces USE_PRIVATE_THREADS)
  • USE_APPLICATION_COMMANDS (Replaces USE_SLASH_COMMANDS)

Details

Adds the following permissions to the Permissions enum.

  • SendMessagesInThreads
  • CreatePublicThreads
  • CreatePrivateThreads
  • UseApplicationCommands

Marked the following permissions as obsolete:

  • UsePublicThreads
  • UsePrivateThreads
  • UseSlashCommands

Changes proposed

  • Add Permissions.SendMessagesInThreads with a value of 0x0000004000000000

  • Modify the FULL_PERMS and All values to the result of the old All value and all new values resulting to a new value of 549755813887

Notes

See https://github.com/discord/discord-api-docs/pull/3672

Merge request reports