docs: deprecated event

This commit is contained in:
March 7th 2022-12-13 15:37:32 +07:00
parent 11f7239c7d
commit 8ab26d48ca
3 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,7 @@ class GuildMemberRemoveAction extends Action {
* Emitted whenever a member leaves a guild, or is kicked. * Emitted whenever a member leaves a guild, or is kicked.
* @event Client#guildMemberRemove * @event Client#guildMemberRemove
* @param {GuildMember} member The member that has left/been kicked from the guild * @param {GuildMember} member The member that has left/been kicked from the guild
* @deprecated See {@link https://github.com/aiko-chan-ai/discord.js-selfbot-v13/issues/197 this issue} for more information.
*/ */
if (shard.status === Status.READY) client.emit(Events.GUILD_MEMBER_REMOVE, member); if (shard.status === Status.READY) client.emit(Events.GUILD_MEMBER_REMOVE, member);
} }

View File

@ -25,6 +25,7 @@ class GuildMemberUpdateAction extends Action {
* @event Client#guildMemberUpdate * @event Client#guildMemberUpdate
* @param {GuildMember} oldMember The member before the update * @param {GuildMember} oldMember The member before the update
* @param {GuildMember} newMember The member after the update * @param {GuildMember} newMember The member after the update
* @deprecated See {@link https://github.com/aiko-chan-ai/discord.js-selfbot-v13/issues/197 this issue} for more information.
*/ */
if (shard.status === Status.READY && !member.equals(old)) client.emit(Events.GUILD_MEMBER_UPDATE, old, member); if (shard.status === Status.READY && !member.equals(old)) client.emit(Events.GUILD_MEMBER_UPDATE, old, member);
} else { } else {

View File

@ -12,6 +12,7 @@ module.exports = (client, { d: data }, shard) => {
* Emitted whenever a user joins a guild. * Emitted whenever a user joins a guild.
* @event Client#guildMemberAdd * @event Client#guildMemberAdd
* @param {GuildMember} member The member that has joined a guild * @param {GuildMember} member The member that has joined a guild
* @deprecated See {@link https://github.com/aiko-chan-ai/discord.js-selfbot-v13/issues/197 this issue} for more information.
*/ */
client.emit(Events.GUILD_MEMBER_ADD, member); client.emit(Events.GUILD_MEMBER_ADD, member);
} }