Skip to content

GuildMemberVerification

GuildMemberVerification ⇐ Base

Represents the verification requirements for a guild member.

Kind: global class
Extends: Base

new GuildMemberVerification(data, guildId, client)

ParamTypeDescription
dataObjectThe data for the verification.
guildIdstringThe ID of the guild the verification is for.
clientClientThe client that instantiated this object.

guildMemberVerification.guild : Guild

The guild the verification is for.

Kind: instance property of GuildMemberVerification
Read only: true

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

Fetches this verification’s settings.

Kind: instance method of GuildMemberVerification

ParamTypeDescription
[options]BaseFetchOptionsAdditional options for the fetch.

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

Edits this verification’s settings.

Kind: instance method of GuildMemberVerification

ParamTypeDescription
[options]GuildMemberVerificationEditOptionsThe options to edit the verification.

guildMemberVerification.setEnabled(enabled, [reason]) ⇒ Promise.<GuildMemberVerification>

Sets whether this verification is enabled.

Kind: instance method of GuildMemberVerification

ParamTypeDescription
enabledbooleanWhether the verification is enabled.
[reason]stringThe reason for the change.

guildMemberVerification.setDescription(description, [reason]) ⇒ Promise.<GuildMemberVerification>

Sets the description for this verification.

Kind: instance method of GuildMemberVerification

ParamTypeDescription
descriptionstringThe new description for the verification.
[reason]stringThe reason for the change.

guildMemberVerification.addFields(fields) ⇒ Promise.<GuildMemberVerification>

Adds new fields to this verification.

Kind: instance method of GuildMemberVerification

ParamTypeDescription
fieldsArray.<VerificationFormFields>The fields to add to the verification.

guildMemberVerification.removeFields() ⇒ Promise.<GuildMemberVerification>

Removes all fields from this verification.

Kind: instance method of GuildMemberVerification

GuildMemberVerification.transformoptions(fields) ⇒ Object

Transforms options for a verification form field.

Kind: static method of GuildMemberVerification
Returns: Object - The transformed form fields.

ParamTypeDescription
fieldsObjectThe fields to transform.
fields.typestringThe type of the form field.
fields.labelstringThe label for the form field.
fields.requiredbooleanWhether the field is required or not.
fields.valuesArrayThe values for the field.
fields.choicesArrayThe choices for the field.