BaseEntry class
constructor
The BaseEntry class provides four arguments. The first argument is an entry which provides more information about the action and must be an instance of the Discord.js GuildAuditLogsEntry class. The second argument the member where something happens to. This is mostly used to define for the BaseEntry class whether a member is involved in the action or not. This must be an instance of the Zyno Bot Addons Member class or must be undefined
. The third argument is the guild where the action applies to and must be an instance of the Zyno Bot Addons Guild class. The fourth argument is the addon where the BaseEntry 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 did the action.
user
An instance of the User class and represents the user who got involved in the action. When there is no second user involved in the action, the user property in undefined
.
changed
An instance of the NodeJS built-in Date class which represents the time the action happened.
bannedTimestamp
A number which represents the timestamp of the time when the action happened.
reason
The reason the executor did the action.
guild
An instance of the Guild class and represents the guild where the action happened.
Last updated