BanEntry class

const banEntry = new BanEntry(user: User, guild: Guild, entry: GuildAuditLogsEntry, addon: Addon);

constructor

The BanEntry class provides four arguments. The first argument is the user who got banned and must be an instance of the Discord.js User class. The second argument is the guild where the user was banned from and must be an instance of the Zyno Bot Addons Guild class. The third argument is an entry which provides more information about the ban and must be an instance of the Discord.js GuildAuditLogsEntry class. The fourth argument is the addon where the BanEntry 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 banned the user.

user

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

banned

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

bannedTimestamp

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

reason

The reason the executor provided why it banned the user.

guild

An instance of the Guild class and represents the guild the user was banned from.

Last updated