andersfylling / disgord

Go module for interacting with the documented Discord's bot interface; Gateway, REST requests and voice
BSD 3-Clause "New" or "Revised" License
496 stars 70 forks source link

Switch uint64 to PermissionBit in Role struct, fix unhandled error warn #335

Closed Jack073 closed 4 years ago

Jack073 commented 4 years ago

Description

Changes the Role.Permissions type from uint64 to PermissionBit, this makes it consistent with the rest of the library and also allows it to use the Contains method. This PR also removes an IDE warning caused by ignoring a return value in role.DeepCopy.

Type of change

Please delete options that are not relevant.

Checklist: