User

User

Constructor

new User(server, guildMember)

Source:

Initializes a new User

Parameters:
Name Type Description
server Esdi

Esdi server instance

guildMember external:GuildMember

discord.js GuildMember

Methods

(async) addGuild(guild)

Source:

Adds a Guild to this User

Parameters:
Name Type Description
guild external:Guild

discord.js Guild

isInGuild(guild) → {Boolean}

Source:

Returns whether this User is in the provided Guild

Parameters:
Name Type Description
guild Guild

Guild to check for this User

Returns:

whether this User is in this Guild

Type
Boolean

removeGuild(guild)

Source:

Removes a Guild from this User

Parameters:
Name Type Description
guild external:Guild

discord.js Guild