DiscordGuildMember
The DiscordGuildMember
class represents a member of a Discord guild (server) and provides methods to interact with and manage the guild member.
Properties
user
guildId
type
The type of the DiscordGuildMember. Default is “DiscordGuildMember”.
Methods
kickAsync
DiscordGuildMember : kickAsync () -> Vendor.Future
deleteMessagesSeconds: number?
Kicks the guild member asynchronously.
banAsync
DiscordGuildMember : banAsync () -> Vendor.Future
Bans the guild member asynchronously.
unbanAsync
DiscordGuildMember : unbanAsync () -> Vendor.Future
Unbans the guild member asynchronously.
addRoleAsync
DiscordGuildMember : addRoleAsync () -> Vendor.Future
roleId: string
Adds a role to the guild member asynchronously.
removeRoleAsync
DiscordGuildMember : removeRoleAsync () -> Vendor.Future
roleId: string
Removes a role from the guild member asynchronously.
timeoutAsync
DiscordGuildMember : timeoutAsync () -> Vendor.Future
seconds: number
Times out the guild member asynchronously.
muteAsync
DiscordGuildMember : muteAsync () -> Vendor.Future
Mutes the guild member asynchronously.
unmuteAsync
DiscordGuildMember : unmuteAsync () -> Vendor.Future
Unmutes the guild member asynchronously.
deafenAsync
DiscordGuildMember : deafenAsync () -> Vendor.Future
Deafens the guild member asynchronously.
undeafenAsync
DiscordGuildMember : undeafenAsync () -> Vendor.Future
Undeafens the guild member asynchronously.
setNicknameAsync
DiscordGuildMember : setNicknameAsync () -> Vendor.Future
nickname: string
Sets the nickname of the guild member asynchronously.
modifyAsync
DiscordGuildMember : modifyAsync () -> Vendor.Future
memberBuilder: Builders.MemberBuilder
Modifies the guild member asynchronously.
Functions
new
DiscordGuildMember . new () -> ()
discordClient: any
userId: string
guildId: string
memberData: table
Creates a new DiscordGuildMember instance.