Struct twilight_http::request::guild::member::AddGuildMember
source · [−]pub struct AddGuildMember<'a> { /* private fields */ }
Implementations
sourceimpl<'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 const fn deaf(self, deaf: bool) -> Self
pub const fn deaf(self, deaf: bool) -> Self
Whether the new member will be unable to hear audio when connected to a voice channel.
sourcepub const fn mute(self, mute: bool) -> Self
pub const fn mute(self, mute: bool) -> Self
Whether the new member will be unable to speak in voice channels.
sourcepub fn nick(self, nick: &'a str) -> Result<Self, ValidationError>
pub fn nick(self, nick: &'a str) -> Result<Self, ValidationError>
sourcepub const fn roles(self, roles: &'a [Id<RoleMarker>]) -> Self
pub const fn roles(self, roles: &'a [Id<RoleMarker>]) -> Self
List of roles to assign the new member.
sourcepub fn exec(self) -> ResponseFuture<PartialMember>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
pub fn exec(self) -> ResponseFuture<PartialMember>ⓘNotable traits for ResponseFuture<T>impl<T: Unpin> Future for ResponseFuture<T> type Output = Result<Response<T>, Error>;
Execute the request, returning a future resolving to a Response
.
Trait Implementations
sourceimpl TryIntoRequest for AddGuildMember<'_>
impl TryIntoRequest for AddGuildMember<'_>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more