pub struct GetChannelMemberPermissions<'a> { /* private fields */ }Expand description
Get a member’s computed permissions in a channel.
Includes their roles and member-specific overwrites. Threads use their parent channel’s overwrites.
Requires the VIEW_CHANNEL permission. Also requires the CONNECT
permission for voice and stage channels.
Implementations§
Source§impl<'a> GetChannelMemberPermissions<'a>
impl<'a> GetChannelMemberPermissions<'a>
Sourcepub const fn implicit(self, implicit: bool) -> Self
pub const fn implicit(self, implicit: bool) -> Self
Whether to apply implicit permission masking for missing permissions.
This applies implicit permission masking for VIEW_CHANNEL and
CONNECT for voice and stage channels. Not applied when the
target member is a bot.
Discord defaults this to true.
Trait Implementations§
Source§impl IntoFuture for GetChannelMemberPermissions<'_>
impl IntoFuture for GetChannelMemberPermissions<'_>
Source§type Output = Result<Response<GetChannelMemberPermissionsResponseBody>, Error>
type Output = Result<Response<GetChannelMemberPermissionsResponseBody>, Error>
The output that the future will produce on completion.
Source§type IntoFuture = ResponseFuture<GetChannelMemberPermissionsResponseBody>
type IntoFuture = ResponseFuture<GetChannelMemberPermissionsResponseBody>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Source§impl TryIntoRequest for GetChannelMemberPermissions<'_>
impl TryIntoRequest for GetChannelMemberPermissions<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for GetChannelMemberPermissions<'a>
impl<'a> !UnwindSafe for GetChannelMemberPermissions<'a>
impl<'a> Forget for GetChannelMemberPermissions<'a>
impl<'a> Freeze for GetChannelMemberPermissions<'a>
impl<'a> Move for GetChannelMemberPermissions<'a>
impl<'a> Send for GetChannelMemberPermissions<'a>
impl<'a> Sync for GetChannelMemberPermissions<'a>
impl<'a> Unpin for GetChannelMemberPermissions<'a>
impl<'a> UnsafeUnpin for GetChannelMemberPermissions<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more