pub struct AddGuildMember<'a> { /* private fields */ }
Implementations§
source§impl<'a> AddGuildMember<'a>
impl<'a> AddGuildMember<'a>
Add a user to a guild.
An access token for the user with guilds.join
scope is required. All other
fields are optional. See Discord Docs/Add Guild Member.
sourcepub fn deaf(self, deaf: bool) -> Self
pub fn deaf(self, deaf: bool) -> Self
Whether the new member will be unable to hear audio when connected to a voice channel.
sourcepub fn mute(self, mute: bool) -> Self
pub fn mute(self, mute: bool) -> Self
Whether the new member will be unable to speak in voice channels.
sourcepub fn roles(self, roles: &'a [Id<RoleMarker>]) -> Self
pub fn roles(self, roles: &'a [Id<RoleMarker>]) -> Self
List of roles to assign the new member.
Trait Implementations§
source§impl IntoFuture for AddGuildMember<'_>
impl IntoFuture for AddGuildMember<'_>
source§type Output = Result<Response<PartialMember>, Error>
type Output = Result<Response<PartialMember>, Error>
The output that the future will produce on completion.
source§type IntoFuture = ResponseFuture<PartialMember>
type IntoFuture = ResponseFuture<PartialMember>
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 AddGuildMember<'_>
impl TryIntoRequest for AddGuildMember<'_>
Auto Trait Implementations§
impl<'a> Freeze for AddGuildMember<'a>
impl<'a> !RefUnwindSafe for AddGuildMember<'a>
impl<'a> Send for AddGuildMember<'a>
impl<'a> Sync for AddGuildMember<'a>
impl<'a> Unpin for AddGuildMember<'a>
impl<'a> !UnwindSafe for AddGuildMember<'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