diff options
Diffstat (limited to 'src/model/permissions.rs')
| -rw-r--r-- | src/model/permissions.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/model/permissions.rs b/src/model/permissions.rs index 1c613d3..98400c6 100644 --- a/src/model/permissions.rs +++ b/src/model/permissions.rs @@ -145,8 +145,16 @@ pub fn voice() -> Permissions { CONNECT | SPEAK | USE_VAD } - bitflags! { + /// A set of permissions that can be assigned to [`User`]s and [`Role`]s via + /// [`PermissionOverwrite`]s, roles globally in a [`Guild`], and to + /// [`GuildChannel`]s. + /// + /// [`Guild`]: struct.Guild.html + /// [`GuildChannel`]: struct.GuildChannel.html + /// [`PermissionOverwrite`]: struct.PermissionOverwrite.html + /// [`Role`]: struct.Role.html + /// [`User`]: struct.User.html pub flags Permissions: u64 { /// Allows for the creation of [`RichInvite`]s. /// |