KickEntry class

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

constructor

The KickEntry class provides four arguments. The first argument is the user who got kicked and must be an instance of the Discord.js User class. The second argument is the guild where the user was kicked 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 kick and must be an instance of the Discord.js GuildAuditLogsEntry class. The fourth argument is the addon where the KickEntry 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 kicked the user.

user

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

kicked

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

kickedTimestamp

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

reason

The reason the executor provided why it kicked the user.

guild

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

Last updated