MuteEntry class

const muteEntry = new MuteEntry(entry: GuildAuditLogsEntry, guild: Guild, addon: Addon);

constructor

The MuteEntry class provides three arguments. The first argument is an entry which provides more information about the mute and must be an instance of the Discord.js GuildAuditLogsEntry class. The second argument is the guild where the user was muted and must be an instance of the Zyno Bot Addons Guild class. The third argument is the addon where the MuteEntry class should be created for and must be an instance of the Zyno Bot Addons Addon class.

Properties

executor

An instance of the User class and represents the user who muted the user.

user

An instance of the User class and represents the user who got muted.

muted

An instance of the NodeJS built-in Date class which represents the time when the user got muted.

mutedTimestamp

A number which represents the timestamp of the time when the user got muted.

reason

The reason the executor provided why it muted the user.

guild

An instance of the Guild class and represents the guild the user was muted in.

Last updated