@ovencord/discord.js 14.16.14 → 14.16.15-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/package.json +10 -11
  2. package/src/client/Client.ts +102 -114
  3. package/src/client/actions/Action.ts +27 -23
  4. package/src/client/actions/ChannelCreate.ts +2 -2
  5. package/src/client/actions/ChannelDelete.ts +1 -1
  6. package/src/client/actions/ChannelUpdate.ts +2 -2
  7. package/src/client/actions/GuildChannelsPositionUpdate.ts +1 -1
  8. package/src/client/actions/GuildEmojiCreate.ts +1 -1
  9. package/src/client/actions/GuildEmojiDelete.ts +1 -1
  10. package/src/client/actions/GuildEmojiUpdate.ts +1 -1
  11. package/src/client/actions/GuildEmojisUpdate.ts +1 -1
  12. package/src/client/actions/GuildMemberRemove.ts +1 -1
  13. package/src/client/actions/GuildMemberUpdate.ts +1 -1
  14. package/src/client/actions/GuildRoleCreate.ts +1 -1
  15. package/src/client/actions/GuildRoleDelete.ts +1 -1
  16. package/src/client/actions/GuildRolesPositionUpdate.ts +1 -1
  17. package/src/client/actions/GuildScheduledEventDelete.ts +1 -1
  18. package/src/client/actions/GuildScheduledEventUserAdd.ts +1 -1
  19. package/src/client/actions/GuildScheduledEventUserRemove.ts +1 -1
  20. package/src/client/actions/GuildSoundboardSoundDelete.ts +1 -1
  21. package/src/client/actions/GuildStickerCreate.ts +1 -1
  22. package/src/client/actions/GuildStickerDelete.ts +1 -1
  23. package/src/client/actions/GuildStickerUpdate.ts +1 -1
  24. package/src/client/actions/GuildStickersUpdate.ts +1 -1
  25. package/src/client/actions/GuildUpdate.ts +1 -1
  26. package/src/client/actions/InteractionCreate.ts +1 -1
  27. package/src/client/actions/MessageCreate.ts +2 -2
  28. package/src/client/actions/MessageDelete.ts +2 -2
  29. package/src/client/actions/MessageDeleteBulk.ts +1 -1
  30. package/src/client/actions/MessagePollVoteAdd.ts +2 -2
  31. package/src/client/actions/MessagePollVoteRemove.ts +2 -2
  32. package/src/client/actions/MessageReactionAdd.ts +2 -2
  33. package/src/client/actions/MessageReactionRemove.ts +2 -2
  34. package/src/client/actions/MessageReactionRemoveAll.ts +1 -1
  35. package/src/client/actions/MessageReactionRemoveEmoji.ts +1 -1
  36. package/src/client/actions/MessageUpdate.ts +1 -1
  37. package/src/client/actions/StageInstanceCreate.ts +1 -1
  38. package/src/client/actions/StageInstanceDelete.ts +1 -1
  39. package/src/client/actions/StageInstanceUpdate.ts +1 -1
  40. package/src/client/actions/ThreadCreate.ts +1 -1
  41. package/src/client/actions/ThreadMembersUpdate.ts +1 -1
  42. package/src/client/actions/TypingStart.ts +1 -1
  43. package/src/client/actions/UserUpdate.ts +1 -1
  44. package/src/client/websocket/handlers/RATE_LIMITED.ts +1 -1
  45. package/src/managers/ApplicationEmojiManager.ts +11 -11
  46. package/src/managers/PresenceManager.ts +0 -1
  47. package/src/managers/UserManager.ts +0 -1
  48. package/src/sharding/Shard.ts +38 -37
  49. package/src/sharding/ShardClientUtil.ts +18 -19
  50. package/src/sharding/ShardingManager.ts +7 -7
  51. package/src/structures/AnonymousGuild.ts +0 -1
  52. package/src/structures/BaseGuild.ts +0 -1
  53. package/src/structures/Guild.ts +0 -1
  54. package/src/structures/interfaces/Collector.ts +1 -1
  55. package/src/util/AsyncEventEmitter.ts +150 -0
  56. package/src/util/Partials.ts +1 -1
  57. package/src/util/Status.ts +5 -15
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class GuildEmojiDeleteAction extends Action {
5
- handle(emoji) {
5
+ override handle(emoji: any) {
6
6
  emoji.guild.emojis.cache.delete(emoji.id);
7
7
  /**
8
8
  * Emitted whenever a custom emoji is deleted in a guild.
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class GuildEmojiUpdateAction extends Action {
5
- handle(current, data) {
5
+ override handle(current: any, data: any) {
6
6
  const old = current._update(data);
7
7
  /**
8
8
  * Emitted whenever a custom emoji is updated in a guild.
@@ -1,7 +1,7 @@
1
1
  import { Action } from './Action.js';
2
2
 
3
3
  export class GuildEmojisUpdateAction extends Action {
4
- handle(data) {
4
+ override handle(data: any) {
5
5
  const guild = this.client.guilds.cache.get(data.guild_id);
6
6
  if (!guild?.emojis) return;
7
7
 
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class GuildMemberRemoveAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const client = this.client;
7
7
  const guild = client.guilds.cache.get(data.guild_id);
8
8
  let member = null;
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class GuildMemberUpdateAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const { client } = this;
7
7
  if (data.user.username) {
8
8
  const user = client.users.cache.get(data.user.id);
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class GuildRoleCreateAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const client = this.client;
7
7
  const guild = client.guilds.cache.get(data.guild_id);
8
8
  let role;
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class GuildRoleDeleteAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const client = this.client;
7
7
  const guild = client.guilds.cache.get(data.guild_id);
8
8
  let role;
@@ -1,7 +1,7 @@
1
1
  import { Action } from './Action.js';
2
2
 
3
3
  export class GuildRolesPositionUpdateAction extends Action {
4
- handle(data) {
4
+ override handle(data: any) {
5
5
  const client = this.client;
6
6
 
7
7
  const guild = client.guilds.cache.get(data.guild_id);
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class GuildScheduledEventDeleteAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const client = this.client;
7
7
  const guild = client.guilds.cache.get(data.guild_id);
8
8
 
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class GuildScheduledEventUserAddAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const client = this.client;
7
7
  const guild = client.guilds.cache.get(data.guild_id);
8
8
 
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class GuildScheduledEventUserRemoveAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const client = this.client;
7
7
  const guild = client.guilds.cache.get(data.guild_id);
8
8
 
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class GuildSoundboardSoundDeleteAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const guild = this.client.guilds.cache.get(data.guild_id);
7
7
 
8
8
  if (!guild) return {};
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class GuildStickerCreateAction extends Action {
5
- handle(guild, createdSticker) {
5
+ override handle(guild: any, createdSticker: any) {
6
6
  const already = guild.stickers.cache.has(createdSticker.id);
7
7
  const sticker = guild.stickers._add(createdSticker);
8
8
  /**
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class GuildStickerDeleteAction extends Action {
5
- handle(sticker) {
5
+ override handle(sticker: any) {
6
6
  sticker.guild.stickers.cache.delete(sticker.id);
7
7
  /**
8
8
  * Emitted whenever a custom sticker is deleted in a guild.
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class GuildStickerUpdateAction extends Action {
5
- handle(current, data) {
5
+ override handle(current: any, data: any) {
6
6
  const old = current._update(data);
7
7
  /**
8
8
  * Emitted whenever a custom sticker is updated in a guild.
@@ -1,7 +1,7 @@
1
1
  import { Action } from './Action.js';
2
2
 
3
3
  export class GuildStickersUpdateAction extends Action {
4
- handle(data) {
4
+ override handle(data: any) {
5
5
  const guild = this.client.guilds.cache.get(data.guild_id);
6
6
  if (!guild?.stickers) return;
7
7
 
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class GuildUpdateAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const client = this.client;
7
7
 
8
8
  const guild = client.guilds.cache.get(data.id);
@@ -15,7 +15,7 @@ import { Events } from '../../util/Events.js';
15
15
  import { Action } from './Action.js';
16
16
 
17
17
  export class InteractionCreateAction extends Action {
18
- handle(data) {
18
+ override handle(data: any) {
19
19
  const client = this.client;
20
20
 
21
21
  // Resolve and cache partial channels for Interaction#channel getter
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class MessageCreateAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const client = this.client;
7
7
  const channel = this.getChannel({
8
8
  id: data.channel_id,
@@ -18,7 +18,7 @@ export class MessageCreateAction extends Action {
18
18
  }
19
19
 
20
20
  const existing = channel.messages.cache.get(data.id);
21
- if (existing && existing.author?.id !== this.client.user.id) return { message: existing };
21
+ if (existing && existing.author?.id !== this.client.user?.id) return { message: existing };
22
22
  const message = existing ?? channel.messages._add(data);
23
23
  channel.lastMessageId = data.id;
24
24
 
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class MessageDeleteAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const client = this.client;
7
7
  const channel = this.getChannel({ id: data.channel_id, ...('guild_id' in data && { guild_id: data.guild_id }) });
8
8
  let message;
@@ -11,7 +11,7 @@ export class MessageDeleteAction extends Action {
11
11
 
12
12
  if (channel.isThread()) channel.messageCount--;
13
13
 
14
- message = this.getMessage(data, channel);
14
+ message = this.getMessage(data, channel, undefined);
15
15
  if (message) {
16
16
  channel.messages.cache.delete(message.id);
17
17
  /**
@@ -3,7 +3,7 @@ import { Events } from '../../util/Events.js';
3
3
  import { Action } from './Action.js';
4
4
 
5
5
  export class MessageDeleteBulkAction extends Action {
6
- handle(data) {
6
+ override handle(data: any) {
7
7
  const client = this.client;
8
8
  const channel = client.channels.cache.get(data.channel_id);
9
9
 
@@ -2,11 +2,11 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class MessagePollVoteAddAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const channel = this.getChannel({ id: data.channel_id, ...('guild_id' in data && { guild_id: data.guild_id }) });
7
7
  if (!channel?.isTextBased()) return false;
8
8
 
9
- const message = this.getMessage(data, channel);
9
+ const message = this.getMessage(data, channel, undefined);
10
10
  if (!message) return false;
11
11
 
12
12
  const poll = this.getPoll(data, message, channel);
@@ -2,11 +2,11 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class MessagePollVoteRemoveAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const channel = this.getChannel({ id: data.channel_id, ...('guild_id' in data && { guild_id: data.guild_id }) });
7
7
  if (!channel?.isTextBased()) return false;
8
8
 
9
- const message = this.getMessage(data, channel);
9
+ const message = this.getMessage(data, channel, undefined);
10
10
  if (!message) return false;
11
11
 
12
12
  const poll = this.getPoll(data, message, channel);
@@ -14,7 +14,7 @@ import { Action } from './Action.js';
14
14
  */
15
15
 
16
16
  export class MessageReactionAddAction extends Action {
17
- handle(data, fromStructure = false) {
17
+ override handle(data: any, fromStructure = false) {
18
18
  if (!data.emoji) return false;
19
19
 
20
20
  const user = this.getUserFromMember(data);
@@ -31,7 +31,7 @@ export class MessageReactionAddAction extends Action {
31
31
  if (!channel?.isTextBased()) return false;
32
32
 
33
33
  // Verify message
34
- const message = this.getMessage(data, channel);
34
+ const message = this.getMessage(data, channel, undefined);
35
35
  if (!message) return false;
36
36
 
37
37
  // Verify reaction
@@ -10,7 +10,7 @@ import { Action } from './Action.js';
10
10
  */
11
11
 
12
12
  export class MessageReactionRemoveAction extends Action {
13
- handle(data) {
13
+ override handle(data: any) {
14
14
  if (!data.emoji) return false;
15
15
 
16
16
  const user = this.getUser(data);
@@ -25,7 +25,7 @@ export class MessageReactionRemoveAction extends Action {
25
25
  if (!channel?.isTextBased()) return false;
26
26
 
27
27
  // Verify message
28
- const message = this.getMessage(data, channel);
28
+ const message = this.getMessage(data, channel, undefined);
29
29
  if (!message) return false;
30
30
 
31
31
  // Verify reaction
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class MessageReactionRemoveAllAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  // Verify channel
7
7
  const channel = this.getChannel({ id: data.channel_id, ...('guild_id' in data && { guild_id: data.guild_id }) });
8
8
  if (!channel?.isTextBased()) return false;
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class MessageReactionRemoveEmojiAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const channel = this.getChannel({ id: data.channel_id, ...('guild_id' in data && { guild_id: data.guild_id }) });
7
7
  if (!channel?.isTextBased()) return false;
8
8
 
@@ -1,7 +1,7 @@
1
1
  import { Action } from './Action.js';
2
2
 
3
3
  export class MessageUpdateAction extends Action {
4
- handle(data) {
4
+ override handle(data: any) {
5
5
  const channel = this.getChannel({ id: data.channel_id, ...('guild_id' in data && { guild_id: data.guild_id }) });
6
6
  if (channel) {
7
7
  if (!channel.isTextBased()) return {};
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class StageInstanceCreateAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const client = this.client;
7
7
  const channel = this.getChannel({ id: data.channel_id, guild_id: data.guild_id });
8
8
 
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class StageInstanceDeleteAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const client = this.client;
7
7
  const channel = this.getChannel({ id: data.channel_id, guild_id: data.guild_id });
8
8
 
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class StageInstanceUpdateAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const client = this.client;
7
7
  const channel = this.getChannel({ id: data.channel_id, guild_id: data.guild_id });
8
8
 
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class ThreadCreateAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const client = this.client;
7
7
  const existing = client.channels.cache.has(data.id);
8
8
  const thread = client.channels._add(data);
@@ -3,7 +3,7 @@ import { Events } from '../../util/Events.js';
3
3
  import { Action } from './Action.js';
4
4
 
5
5
  export class ThreadMembersUpdateAction extends Action {
6
- handle(data) {
6
+ override handle(data: any) {
7
7
  const client = this.client;
8
8
  const thread = client.channels.cache.get(data.id);
9
9
  if (thread) {
@@ -3,7 +3,7 @@ import { Events } from '../../util/Events.js';
3
3
  import { Action } from './Action.js';
4
4
 
5
5
  export class TypingStartAction extends Action {
6
- handle(data) {
6
+ override handle(data: any) {
7
7
  const channel = this.getChannel({ id: data.channel_id, ...('guild_id' in data && { guild_id: data.guild_id }) });
8
8
  if (!channel) return;
9
9
 
@@ -2,7 +2,7 @@ import { Events } from '../../util/Events.js';
2
2
  import { Action } from './Action.js';
3
3
 
4
4
  export class UserUpdateAction extends Action {
5
- handle(data) {
5
+ override handle(data: any) {
6
6
  const client = this.client;
7
7
 
8
8
  const newUser = data.id === client.user.id ? client.user : client.users.cache.get(data.id);
@@ -1,5 +1,5 @@
1
1
 
2
- import process from 'node:process';
2
+
3
3
  import { GatewayOpcodes } from 'discord-api-types/v10';
4
4
 
5
5
  const emittedFor = new Set();
@@ -12,7 +12,7 @@ import { CachedManager } from './CachedManager.js';
12
12
  */
13
13
  export class ApplicationEmojiManager extends CachedManager {
14
14
  public application: any;
15
- constructor(application, iterable) {
15
+ constructor(application: any, iterable: any) {
16
16
  super(application.client, ApplicationEmoji, iterable);
17
17
 
18
18
  /**
@@ -23,7 +23,7 @@ export class ApplicationEmojiManager extends CachedManager {
23
23
  this.application = application;
24
24
  }
25
25
 
26
- _add(data, cache) {
26
+ _add(data: any, cache: any) {
27
27
  return super._add(data, cache, { extras: [this.application] });
28
28
  }
29
29
 
@@ -51,14 +51,14 @@ export class ApplicationEmojiManager extends CachedManager {
51
51
  * .then(emoji => console.log(`Created new emoji with name ${emoji.name}!`))
52
52
  * .catch(console.error);
53
53
  */
54
- async create({ attachment, name }) {
54
+ async create({ attachment, name }: { attachment: any; name: string }) {
55
55
  const image = await resolveImage(attachment);
56
56
  if (!image) throw new DiscordjsTypeError(ErrorCodes.ReqResourceType);
57
57
 
58
58
  const body = { image, name };
59
59
 
60
60
  const emoji = await this.client.rest.post(Routes.applicationEmojis(this.application.id), { body });
61
- return this._add(emoji);
61
+ return this._add(emoji, true);
62
62
  }
63
63
 
64
64
  /**
@@ -78,7 +78,7 @@ export class ApplicationEmojiManager extends CachedManager {
78
78
  * .then(emoji => console.log(`The emoji name is: ${emoji.name}`))
79
79
  * .catch(console.error);
80
80
  */
81
- async fetch(id, { cache = true, force = false } = {}) {
81
+ async fetch(id?: string, { cache = true, force = false }: { cache?: boolean; force?: boolean } = {}) {
82
82
  if (id) {
83
83
  if (!force) {
84
84
  const existing = this.cache.get(id);
@@ -89,7 +89,7 @@ export class ApplicationEmojiManager extends CachedManager {
89
89
  return this._add(emoji, cache);
90
90
  }
91
91
 
92
- const { items: data } = await this.client.rest.get(Routes.applicationEmojis(this.application.id));
92
+ const { items: data } = (await this.client.rest.get(Routes.applicationEmojis(this.application.id))) as any;
93
93
  const emojis = new Collection();
94
94
  for (const emoji of data) emojis.set(emoji.id, this._add(emoji, cache));
95
95
  return emojis;
@@ -101,7 +101,7 @@ export class ApplicationEmojiManager extends CachedManager {
101
101
  * @param {EmojiResolvable} emoji The Emoji resolvable to delete
102
102
  * @returns {Promise<void>}
103
103
  */
104
- async delete(emoji) {
104
+ async delete(emoji: any) {
105
105
  const id = this.resolveId(emoji);
106
106
  if (!id) throw new DiscordjsTypeError(ErrorCodes.InvalidType, 'emoji', 'EmojiResolvable', true);
107
107
  await this.client.rest.delete(Routes.applicationEmoji(this.application.id, id));
@@ -114,7 +114,7 @@ export class ApplicationEmojiManager extends CachedManager {
114
114
  * @param {ApplicationEmojiEditOptions} options The options to provide
115
115
  * @returns {Promise<ApplicationEmoji>}
116
116
  */
117
- async edit(emoji, options) {
117
+ async edit(emoji: any, options: any) {
118
118
  const id = this.resolveId(emoji);
119
119
  if (!id) throw new DiscordjsTypeError(ErrorCodes.InvalidType, 'emoji', 'EmojiResolvable', true);
120
120
 
@@ -129,7 +129,7 @@ export class ApplicationEmojiManager extends CachedManager {
129
129
  return existing;
130
130
  }
131
131
 
132
- return this._add(newData);
132
+ return this._add(newData, true);
133
133
  }
134
134
 
135
135
  /**
@@ -138,12 +138,12 @@ export class ApplicationEmojiManager extends CachedManager {
138
138
  * @param {EmojiResolvable} emoji The emoji to fetch the author of
139
139
  * @returns {Promise<User>}
140
140
  */
141
- async fetchAuthor(emoji) {
141
+ async fetchAuthor(emoji: any) {
142
142
  const id = this.resolveId(emoji);
143
143
  if (!id) throw new DiscordjsTypeError(ErrorCodes.InvalidType, 'emoji', 'EmojiResolvable', true);
144
144
 
145
145
  const data = await this.client.rest.get(Routes.applicationEmoji(this.application.id, id));
146
146
 
147
- return this._add(data).author;
147
+ return this._add(data, true).author;
148
148
  }
149
149
  }
@@ -7,7 +7,6 @@ import { CachedManager } from './CachedManager.js';
7
7
  * @extends {CachedManager}
8
8
  */
9
9
  export class PresenceManager extends CachedManager {
10
- public client: any;
11
10
  constructor(client, iterable) {
12
11
  super(client, Presence, iterable);
13
12
  }
@@ -12,7 +12,6 @@ import { CachedManager } from './CachedManager.js';
12
12
  * @extends {CachedManager}
13
13
  */
14
14
  export class UserManager extends CachedManager {
15
- public client: any;
16
15
  constructor(client, iterable) {
17
16
  super(client, User, iterable);
18
17
  }