Skip to content

GuildMemberVerificationManager

GuildMemberVerificationManager ⇐ Base

Represents a manager for guild member verification settings.

Kind: global class
Extends: Base

new GuildMemberVerificationManager(guildId, client)

Constructs a new instance of the class.

ParamTypeDescription
guildIdstringThe ID of the guild.
clientClientThe client instance.

guildMemberVerificationManager.fetch([options]) ⇒ Promise.<GuildMemberVerification>

Fetches the member verification information for a guild.

Kind: instance method of GuildMemberVerificationManager
Returns: Promise.<GuildMemberVerification> - - A promise that resolves with the fetched GuildMemberVerification object.

ParamTypeDescription
[options]ObjectThe options for the fetch request.
[options.withGuild]booleanWhether to include guild information in the response.
[options.inviteCode]string | ObjectThe invite code or object containing the invite code.

guildMemberVerificationManager.edit([options]) ⇒ Promise.<GuildMemberVerification>

Edits the member verification settings for the guild.

Kind: instance method of GuildMemberVerificationManager
Returns: Promise.<GuildMemberVerification> - A promise that resolves with the updated GuildMemberVerification object.

ParamTypeDescription
[options]ObjectThe options for the member verification settings.
[options.enabled]booleanWhether member verification is enabled or not.
[options.fields]Array.<Object>An array of form field objects for member verification.
[options.description]stringThe description for the member verification form.

GuildMemberVerificationManager.createFormFields(fields) ⇒ Object

Creates a form field object with the given fields.

Kind: static method of GuildMemberVerificationManager
Returns: Object - - The created form field object.

ParamTypeDescription
fieldsObjectThe fields to include in the form field object.