revbot.js 0.0.2 → 0.0.3

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 (144) hide show
  1. package/dist/index.d.mts +2450 -0
  2. package/dist/index.d.ts +2450 -0
  3. package/dist/index.js +4127 -22
  4. package/dist/index.mjs +4055 -0
  5. package/package.json +1 -1
  6. package/dist/client/baseClient.js +0 -66
  7. package/dist/client/baseClient.js.map +0 -1
  8. package/dist/client/client.js +0 -120
  9. package/dist/client/client.js.map +0 -1
  10. package/dist/client/events/bulkMessageDelete.js +0 -22
  11. package/dist/client/events/bulkMessageDelete.js.map +0 -1
  12. package/dist/client/events/channelCreate.js +0 -42
  13. package/dist/client/events/channelCreate.js.map +0 -1
  14. package/dist/client/events/channelDelete.js +0 -30
  15. package/dist/client/events/channelDelete.js.map +0 -1
  16. package/dist/client/events/channelGroupJoin.js +0 -39
  17. package/dist/client/events/channelGroupJoin.js.map +0 -1
  18. package/dist/client/events/channelGroupLeave.js +0 -39
  19. package/dist/client/events/channelGroupLeave.js.map +0 -1
  20. package/dist/client/events/channelStarttyping.js +0 -27
  21. package/dist/client/events/channelStarttyping.js.map +0 -1
  22. package/dist/client/events/channelStopTyping.js +0 -27
  23. package/dist/client/events/channelStopTyping.js.map +0 -1
  24. package/dist/client/events/channelUpdate.js +0 -26
  25. package/dist/client/events/channelUpdate.js.map +0 -1
  26. package/dist/client/events/event.js +0 -21
  27. package/dist/client/events/event.js.map +0 -1
  28. package/dist/client/events/eventManager.js +0 -82
  29. package/dist/client/events/eventManager.js.map +0 -1
  30. package/dist/client/events/index.js +0 -39
  31. package/dist/client/events/index.js.map +0 -1
  32. package/dist/client/events/message.js +0 -43
  33. package/dist/client/events/message.js.map +0 -1
  34. package/dist/client/events/messageDelete.js +0 -31
  35. package/dist/client/events/messageDelete.js.map +0 -1
  36. package/dist/client/events/messageReact.js +0 -47
  37. package/dist/client/events/messageReact.js.map +0 -1
  38. package/dist/client/events/messageUnreact.js +0 -52
  39. package/dist/client/events/messageUnreact.js.map +0 -1
  40. package/dist/client/events/messageUpdate.js +0 -29
  41. package/dist/client/events/messageUpdate.js.map +0 -1
  42. package/dist/client/events/serverCreate.js +0 -37
  43. package/dist/client/events/serverCreate.js.map +0 -1
  44. package/dist/client/events/serverDelete.js +0 -27
  45. package/dist/client/events/serverDelete.js.map +0 -1
  46. package/dist/client/events/serverMemberJoin.js +0 -41
  47. package/dist/client/events/serverMemberJoin.js.map +0 -1
  48. package/dist/client/events/serverMemberLeave.js +0 -31
  49. package/dist/client/events/serverMemberLeave.js.map +0 -1
  50. package/dist/client/events/serverMemberUpdate.js +0 -45
  51. package/dist/client/events/serverMemberUpdate.js.map +0 -1
  52. package/dist/client/events/serverRoleDelete.js +0 -31
  53. package/dist/client/events/serverRoleDelete.js.map +0 -1
  54. package/dist/client/events/serverRoleUpdate.js +0 -29
  55. package/dist/client/events/serverRoleUpdate.js.map +0 -1
  56. package/dist/client/events/serverupdate.js +0 -26
  57. package/dist/client/events/serverupdate.js.map +0 -1
  58. package/dist/client/events/userUpdate.js +0 -28
  59. package/dist/client/events/userUpdate.js.map +0 -1
  60. package/dist/client/webSocket.js +0 -285
  61. package/dist/client/webSocket.js.map +0 -1
  62. package/dist/index.js.map +0 -1
  63. package/dist/managers/baseManager.js +0 -44
  64. package/dist/managers/baseManager.js.map +0 -1
  65. package/dist/managers/channelManager.js +0 -113
  66. package/dist/managers/channelManager.js.map +0 -1
  67. package/dist/managers/index.js +0 -25
  68. package/dist/managers/index.js.map +0 -1
  69. package/dist/managers/messageManager.js +0 -218
  70. package/dist/managers/messageManager.js.map +0 -1
  71. package/dist/managers/roleManager.js +0 -52
  72. package/dist/managers/roleManager.js.map +0 -1
  73. package/dist/managers/serverChannelManager.js +0 -81
  74. package/dist/managers/serverChannelManager.js.map +0 -1
  75. package/dist/managers/serverManager.js +0 -72
  76. package/dist/managers/serverManager.js.map +0 -1
  77. package/dist/managers/serverMemberManager.js +0 -128
  78. package/dist/managers/serverMemberManager.js.map +0 -1
  79. package/dist/managers/userManager.js +0 -56
  80. package/dist/managers/userManager.js.map +0 -1
  81. package/dist/rest/restClient.js +0 -113
  82. package/dist/rest/restClient.js.map +0 -1
  83. package/dist/rest/restUtils/queue.js +0 -22
  84. package/dist/rest/restUtils/queue.js.map +0 -1
  85. package/dist/struct/attachment.js +0 -42
  86. package/dist/struct/attachment.js.map +0 -1
  87. package/dist/struct/base.js +0 -88
  88. package/dist/struct/base.js.map +0 -1
  89. package/dist/struct/category.js +0 -65
  90. package/dist/struct/category.js.map +0 -1
  91. package/dist/struct/channel.js +0 -111
  92. package/dist/struct/channel.js.map +0 -1
  93. package/dist/struct/clientUser.js +0 -69
  94. package/dist/struct/clientUser.js.map +0 -1
  95. package/dist/struct/dmChannel.js +0 -87
  96. package/dist/struct/dmChannel.js.map +0 -1
  97. package/dist/struct/emoji.js +0 -49
  98. package/dist/struct/emoji.js.map +0 -1
  99. package/dist/struct/groupChannel.js +0 -203
  100. package/dist/struct/groupChannel.js.map +0 -1
  101. package/dist/struct/index.js +0 -37
  102. package/dist/struct/index.js.map +0 -1
  103. package/dist/struct/interfaces/baseChannel.js +0 -3
  104. package/dist/struct/interfaces/baseChannel.js.map +0 -1
  105. package/dist/struct/invite.js +0 -67
  106. package/dist/struct/invite.js.map +0 -1
  107. package/dist/struct/mentions.js +0 -86
  108. package/dist/struct/mentions.js.map +0 -1
  109. package/dist/struct/message.js +0 -249
  110. package/dist/struct/message.js.map +0 -1
  111. package/dist/struct/messageEmbed.js +0 -106
  112. package/dist/struct/messageEmbed.js.map +0 -1
  113. package/dist/struct/notesChannel.js +0 -92
  114. package/dist/struct/notesChannel.js.map +0 -1
  115. package/dist/struct/presence.js +0 -30
  116. package/dist/struct/presence.js.map +0 -1
  117. package/dist/struct/role.js +0 -107
  118. package/dist/struct/role.js.map +0 -1
  119. package/dist/struct/server.js +0 -164
  120. package/dist/struct/server.js.map +0 -1
  121. package/dist/struct/serverChannel.js +0 -118
  122. package/dist/struct/serverChannel.js.map +0 -1
  123. package/dist/struct/serverMember.js +0 -205
  124. package/dist/struct/serverMember.js.map +0 -1
  125. package/dist/struct/textChannel.js +0 -83
  126. package/dist/struct/textChannel.js.map +0 -1
  127. package/dist/struct/user.js +0 -172
  128. package/dist/struct/user.js.map +0 -1
  129. package/dist/struct/voiceChannels.js +0 -54
  130. package/dist/struct/voiceChannels.js.map +0 -1
  131. package/dist/test.js +0 -42
  132. package/dist/test.js.map +0 -1
  133. package/dist/utils/UUID.js +0 -53
  134. package/dist/utils/UUID.js.map +0 -1
  135. package/dist/utils/badges.js +0 -22
  136. package/dist/utils/badges.js.map +0 -1
  137. package/dist/utils/bitField.js +0 -79
  138. package/dist/utils/bitField.js.map +0 -1
  139. package/dist/utils/constants.js +0 -105
  140. package/dist/utils/constants.js.map +0 -1
  141. package/dist/utils/index.js +0 -22
  142. package/dist/utils/index.js.map +0 -1
  143. package/dist/utils/permissions.js +0 -68
  144. package/dist/utils/permissions.js.map +0 -1
@@ -1,249 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Message = void 0;
4
- const index_1 = require("./index");
5
- const index_2 = require("../utils/index");
6
- /**
7
- * Represents a message in a channel.
8
- *
9
- * @extends Base
10
- */
11
- class Message extends index_1.Base {
12
- /**
13
- * Creates a new Message instance.
14
- *
15
- * @param {client} client - The client instance.
16
- * @param {APIMessage} data - The raw data for the message from the API.
17
- */
18
- constructor(client, data) {
19
- super(client);
20
- /** The type of the message (e.g., TEXT, SYSTEM). */
21
- this.type = "TEXT";
22
- /** The content of the message. */
23
- this.content = "";
24
- /** An array of embeds included in the message. */
25
- this.embeds = [];
26
- /** An array of file attachments included in the message. */
27
- this.attachments = [];
28
- /** Mentions included in the message. */
29
- this.mentions = new index_1.Mentions(this, []);
30
- /** The timestamp of when the message was last edited, or `null` if not edited. */
31
- this.editedTimestamp = null;
32
- /** the reactions and count on a message */
33
- this.reactions = new Map();
34
- this._patch(data);
35
- }
36
- /**
37
- * Updates the message instance with new data from the API.
38
- *
39
- * @param {APIMessage} data - The raw data for the message from the API.
40
- * @returns {this} The updated message instance.
41
- * @protected
42
- */
43
- _patch(data) {
44
- super._patch(data);
45
- if (Array.isArray(data.embeds)) {
46
- this.embeds = data.embeds;
47
- }
48
- if (Array.isArray(data.attachments)) {
49
- this.attachments = data.attachments;
50
- }
51
- if (Array.isArray(data.mentions)) {
52
- this.mentions = new index_1.Mentions(this, data.mentions);
53
- }
54
- if (data.author) {
55
- this.authorId = data.author;
56
- }
57
- if (data.channel) {
58
- this.channelId = data.channel;
59
- }
60
- if (typeof data.content === "string") {
61
- this.content = data.content;
62
- }
63
- if (data.system) {
64
- this.type = data.system.type.toUpperCase();
65
- }
66
- if (data.edited) {
67
- this.editedTimestamp = Date.parse(data.edited);
68
- }
69
- return this;
70
- }
71
- /**
72
- * Gets the creation date of the message.
73
- *
74
- * @returns {Date} The date when the message was created.
75
- */
76
- get createdAt() {
77
- return index_2.UUID.timestampOf(this.id);
78
- }
79
- /**
80
- * Gets the creation timestamp of the message in milliseconds.
81
- *
82
- * @returns {number} The timestamp of when the message was created.
83
- */
84
- get createdTimestamp() {
85
- return this.createdAt.getTime();
86
- }
87
- /**
88
- * Gets the date when the message was last edited.
89
- *
90
- * @returns {Date | null} The date of the last edit, or `null` if not edited.
91
- */
92
- get editedAt() {
93
- return this.editedTimestamp ? new Date(this.editedTimestamp) : null;
94
- }
95
- /**
96
- * Checks if the message is a system message.
97
- *
98
- * @returns {boolean} `true` if the message is a system message, otherwise `false`.
99
- */
100
- get system() {
101
- return this.type !== "TEXT";
102
- }
103
- /**
104
- * Retrieves the author of the message.
105
- *
106
- * @returns {User | null} The user who authored the message, or `null` if not found.
107
- */
108
- get author() {
109
- var _a;
110
- return (_a = this.client.users.cache.get(this.authorId)) !== null && _a !== void 0 ? _a : null;
111
- }
112
- /**
113
- * Retrieves the channel where the message was sent.
114
- *
115
- * @returns {TextChannel | DMChannel | GroupChannel} The channel instance.
116
- */
117
- get channel() {
118
- return this.client.channels.cache.get(this.channelId);
119
- }
120
- /**
121
- * Retrieves the server ID associated with the message, if any.
122
- *
123
- * @returns {string | null} The server ID, or `null` if the message is not in a server.
124
- */
125
- get serverId() {
126
- const channel = this.channel;
127
- return channel.inServer() ? channel.serverId : null;
128
- }
129
- /**
130
- * Retrieves the server associated with the message, if any.
131
- *
132
- * @returns {Server | null} The server instance, or `null` if not found.
133
- */
134
- get server() {
135
- var _a;
136
- return (_a = this.client.servers.cache.get(this.serverId)) !== null && _a !== void 0 ? _a : null;
137
- }
138
- /**
139
- * Retrieves the server member who authored the message, if any.
140
- *
141
- * @returns {ServerMember | null} The server member instance, or `null` if not found.
142
- */
143
- get member() {
144
- var _a, _b;
145
- return (_b = (_a = this.server) === null || _a === void 0 ? void 0 : _a.members.cache.get(this.authorId)) !== null && _b !== void 0 ? _b : null;
146
- }
147
- /**
148
- * Gets the URL of the message.
149
- *
150
- * @returns {string} The URL of the message.
151
- */
152
- get url() {
153
- return `https://app.revolt.chat/${this.serverId ? `server/${this.serverId}` : ""}/channel/${this.channelId}/${this.id}`;
154
- }
155
- /**
156
- * Acknowledges the message.
157
- *
158
- * @returns {Promise<void>} A promise that resolves when the message is acknowledged.
159
- */
160
- ack() {
161
- return this.channel.messages.ack(this);
162
- }
163
- /**
164
- * Deletes the message.
165
- *
166
- * @returns {Promise<void>} A promise that resolves when the message is deleted.
167
- */
168
- delete() {
169
- return this.channel.messages.delete(this);
170
- }
171
- /**
172
- * Replies to the message.
173
- *
174
- * @param {string} content - The content of the reply.
175
- * @param {boolean} [mention=true] - Whether to mention the original message author.
176
- * @returns {Promise<Message>} A promise that resolves with the sent reply message.
177
- */
178
- reply(content, mention = true) {
179
- return this.channel.messages.send({
180
- content,
181
- replies: [{ id: this.id, mention }],
182
- });
183
- }
184
- /**
185
- * Edits the message.
186
- *
187
- * @param {MessageEditOptions | string} options - The new content or edit options.
188
- * @returns {Promise<void>} A promise that resolves when the message is edited.
189
- */
190
- edit(options) {
191
- return this.channel.messages.edit(this, options);
192
- }
193
- /**
194
- * Fetches the latest data for the message.
195
- *
196
- * @returns {Promise<Message>} A promise that resolves with the updated message instance.
197
- */
198
- fetch() {
199
- return this.channel.messages.fetch(this.id);
200
- }
201
- /**
202
- * Adds a reaction to the message.
203
- *
204
- * @param {string} emoji - The emoji to react with.
205
- * @returns {Promise<void>} A promise that resolves when the reaction is added.
206
- */
207
- addReaction(emoji) {
208
- return this.channel.messages.addReaction(this, emoji);
209
- }
210
- /**
211
- * Removes a reaction from the message.
212
- *
213
- * @param {string} emoji - The emoji to remove the reaction for.
214
- * @param {object} [options] - Options for removing the reaction.
215
- * @param {string} [options.user_id] - The user ID to remove the reaction for. If not provided, removes the reaction for the current user.
216
- * @param {boolean} [options.remove_all=false] - Whether to remove all of the specified reaction for the message.
217
- * @returns {Promise<void>} A promise that resolves when the reaction is removed.
218
- */
219
- removeReaction(emoji, options) {
220
- var _a, _b;
221
- return this.channel.messages.removeReaction(this, emoji, (_a = options === null || options === void 0 ? void 0 : options.user_id) !== null && _a !== void 0 ? _a : undefined, (_b = options === null || options === void 0 ? void 0 : options.remove_all) !== null && _b !== void 0 ? _b : false);
222
- }
223
- /**
224
- * Removes all reactions from the message.
225
- *
226
- * @returns {Promise<void>} A promise that resolves when all reactions are removed.
227
- */
228
- removeAllReactions() {
229
- return this.channel.messages.removeAllReactions(this);
230
- }
231
- /**
232
- * Checks if the message is in a server.
233
- *
234
- * @returns {boolean} `true` if the message is in a server, otherwise `false`.
235
- */
236
- inServer() {
237
- return this.channel.inServer();
238
- }
239
- /**
240
- * Converts the message to a string representation.
241
- *
242
- * @returns {string} The content of the message.
243
- */
244
- toString() {
245
- return this.content;
246
- }
247
- }
248
- exports.Message = Message;
249
- //# sourceMappingURL=message.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message.js","sourceRoot":"","sources":["../../src/struct/message.ts"],"names":[],"mappings":";;;AAGA,mCAUiB;AACjB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EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC;SACpC,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,IAAI,CAAC,OAAoC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED;;;;OAIG;IACH,KAAK;QACH,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED;;;;;OAKG;IACH,WAAW,CAAC,KAAa;QACvB,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACxD,CAAC;IAED;;;;;;;;OAQG;IACH,cAAc,CACZ,KAAa,EACb,OAAoD;;QAEpD,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,cAAc,CACzC,IAAI,EACJ,KAAK,EACL,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,SAAS,EAC7B,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,mCAAI,KAAK,CAC7B,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,kBAAkB;QAChB,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACH,QAAQ;QAKN,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;IACjC,CAAC;IAED;;;;OAIG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;CACF;AAnSD,0BAmSC"}
@@ -1,106 +0,0 @@
1
- "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _MessageEmbed_url, _MessageEmbed_title, _MessageEmbed_description, _MessageEmbed_icon_url, _MessageEmbed_color, _MessageEmbed_media;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.MessageEmbed = void 0;
16
- /**
17
- * Represents a message embed, which can include rich content such as titles, descriptions, URLs, and media.
18
- */
19
- class MessageEmbed {
20
- constructor() {
21
- _MessageEmbed_url.set(this, void 0);
22
- _MessageEmbed_title.set(this, void 0);
23
- _MessageEmbed_description.set(this, void 0);
24
- _MessageEmbed_icon_url.set(this, void 0);
25
- _MessageEmbed_color.set(this, void 0);
26
- _MessageEmbed_media.set(this, void 0);
27
- }
28
- /**
29
- * Sets the title of the embed.
30
- *
31
- * @param {string} title - The title to set.
32
- * @returns {this} The updated `MessageEmbed` instance.
33
- */
34
- setTitle(title) {
35
- __classPrivateFieldSet(this, _MessageEmbed_title, title, "f");
36
- return this;
37
- }
38
- /**
39
- * Sets the icon URL of the embed.
40
- *
41
- * @param {string} iconURL - The URL of the icon to set.
42
- * @returns {this} The updated `MessageEmbed` instance.
43
- */
44
- setIcon(iconURL) {
45
- __classPrivateFieldSet(this, _MessageEmbed_icon_url, iconURL, "f");
46
- return this;
47
- }
48
- /**
49
- * Sets the color of the embed.
50
- *
51
- * @param {string} color - The color to set (e.g., a hex code).
52
- * @returns {this} The updated `MessageEmbed` instance.
53
- */
54
- setColor(color) {
55
- __classPrivateFieldSet(this, _MessageEmbed_color, color, "f");
56
- return this;
57
- }
58
- /**
59
- * Sets the description of the embed.
60
- *
61
- * @param {string} description - The description to set.
62
- * @returns {this} The updated `MessageEmbed` instance.
63
- */
64
- setDescription(description) {
65
- __classPrivateFieldSet(this, _MessageEmbed_description, description, "f");
66
- return this;
67
- }
68
- /**
69
- * Sets the URL of the embed.
70
- *
71
- * @param {string} url - The URL to set.
72
- * @returns {this} The updated `MessageEmbed` instance.
73
- */
74
- setURL(url) {
75
- __classPrivateFieldSet(this, _MessageEmbed_url, url, "f");
76
- return this;
77
- }
78
- /**
79
- * Sets the media (e.g., image or video) of the embed.
80
- *
81
- * @param {string} media - The media URL to set.
82
- * @returns {this} The updated `MessageEmbed` instance.
83
- */
84
- setMedia(media) {
85
- __classPrivateFieldSet(this, _MessageEmbed_media, media, "f");
86
- return this;
87
- }
88
- /**
89
- * Converts the embed to a JSON object that can be sent to the API.
90
- *
91
- * @returns {SendableEmbed} The JSON representation of the embed.
92
- */
93
- toJSON() {
94
- return {
95
- title: __classPrivateFieldGet(this, _MessageEmbed_title, "f"),
96
- description: __classPrivateFieldGet(this, _MessageEmbed_description, "f"),
97
- url: __classPrivateFieldGet(this, _MessageEmbed_url, "f"),
98
- icon_url: __classPrivateFieldGet(this, _MessageEmbed_icon_url, "f"),
99
- colour: __classPrivateFieldGet(this, _MessageEmbed_color, "f"),
100
- media: __classPrivateFieldGet(this, _MessageEmbed_media, "f"),
101
- };
102
- }
103
- }
104
- exports.MessageEmbed = MessageEmbed;
105
- _MessageEmbed_url = new WeakMap(), _MessageEmbed_title = new WeakMap(), _MessageEmbed_description = new WeakMap(), _MessageEmbed_icon_url = new WeakMap(), _MessageEmbed_color = new WeakMap(), _MessageEmbed_media = new WeakMap();
106
- //# sourceMappingURL=messageEmbed.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"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D,oCAyFC"}
@@ -1,92 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotesChannel = void 0;
4
- const index_1 = require("./index");
5
- const index_2 = require("../managers/index");
6
- const index_3 = require("../utils/index");
7
- /**
8
- * Represents a notes channel, which is used for saving personal messages.
9
- *
10
- * @extends Channel
11
- */
12
- class NotesChannel extends index_1.Channel {
13
- /**
14
- * Creates a new NotesChannel instance.
15
- *
16
- * @param {client} client - The client instance.
17
- * @param {APINotesChannel} data - The raw data for the notes channel from the API.
18
- */
19
- constructor(client, data) {
20
- super(client);
21
- /** The type of the channel, which is always `NOTES` for notes channels. */
22
- this.type = index_3.ChannelTypes.NOTES;
23
- /** The ID of the last message sent in this notes channel, if any. */
24
- this.lastMessageId = null;
25
- /** Manages the messages in this notes channel. */
26
- this.messages = new index_2.MessageManager(this);
27
- this._patch(data);
28
- }
29
- /**
30
- * Updates the notes channel instance with new data from the API.
31
- *
32
- * @param {APINotesChannel} data - The raw data for the notes channel from the API.
33
- * @returns {this} The updated notes channel instance.
34
- * @protected
35
- */
36
- _patch(data) {
37
- super._patch(data);
38
- if (data.user) {
39
- this.userId = data.user;
40
- }
41
- return this;
42
- }
43
- /**
44
- * Sends a message to this notes channel.
45
- *
46
- * @param {MessageOptions | string} options - The message content or options for the message.
47
- * @returns {Promise<Message>} A promise that resolves with the sent message.
48
- *
49
- * @example
50
- * ```typescript
51
- * await notesChannel.send("This is a saved message.");
52
- * ```
53
- */
54
- send(options) {
55
- return this.messages.send(options);
56
- }
57
- /**
58
- * Deletes multiple messages from this notes channel.
59
- *
60
- * @param {MessageResolvable[] | Map<string, Message> | number} messages - The messages to delete. This can be an array of message resolvables, a map of messages, or a number indicating how many recent messages to delete.
61
- * @returns {Promise<void>} A promise that resolves when the messages have been successfully deleted.
62
- *
63
- * @example
64
- * ```typescript
65
- * await notesChannel.bulkDelete(5); // Deletes the last 5 messages.
66
- * ```
67
- */
68
- bulkDelete(messages) {
69
- return this.messages.bulkDelete(messages);
70
- }
71
- /**
72
- * Retrieves the last message sent in this notes channel.
73
- *
74
- * @returns {Message | null} The last message, or `null` if no message exists.
75
- */
76
- get lastMessage() {
77
- var _a;
78
- if (!this.lastMessageId)
79
- return null;
80
- return (_a = this.messages.cache.get(this.lastMessageId)) !== null && _a !== void 0 ? _a : null;
81
- }
82
- /**
83
- * Retrieves the user associated with this notes channel.
84
- *
85
- * @returns {User} The user associated with the notes channel.
86
- */
87
- get user() {
88
- return this.client.user;
89
- }
90
- }
91
- exports.NotesChannel = NotesChannel;
92
- //# sourceMappingURL=notesChannel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notesChannel.js","sourceRoot":"","sources":["../../src/struct/notesChannel.ts"],"names":[],"mappings":";;;AACA,mCAAiD;AAGjD,6CAI2B;AAC3B,0CAA8C;AAI9C;;;;GAIG;AACH,MAAa,YAAa,SAAQ,eAAO;IAavC;;;;;OAKG;IACH,YAAY,MAAc,EAAE,IAAqB;QAC/C,KAAK,CAAC,MAAM,CAAC,CAAC;QAnBhB,2EAA2E;QAClE,SAAI,GAAG,oBAAY,CAAC,KAAK,CAAC;QAKnC,qEAAqE;QACrE,kBAAa,GAAkB,IAAI,CAAC;QAEpC,kDAAkD;QAClD,aAAQ,GAAG,IAAI,sBAAc,CAAC,IAAI,CAAC,CAAC;QAUlC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IAED;;;;;;OAMG;IACO,MAAM,CAAC,IAAqB;QACpC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAEnB,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACd,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC;QAC1B,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,OAAgC;QACnC,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;;;;OAUG;IACH,UAAU,CACR,QAA6D;QAE7D,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED;;;;OAIG;IACH,IAAI,WAAW;;QACb,IAAI,CAAC,IAAI,CAAC,aAAa;YAAE,OAAO,IAAI,CAAC;QACrC,OAAO,MAAA,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC,mCAAI,IAAI,CAAC;IAC7D,CAAC;IAED;;;;OAIG;IACH,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,MAAM,CAAC,IAAK,CAAC;IAC3B,CAAC;CACF;AA3FD,oCA2FC"}
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Presence = exports.Status = void 0;
4
- const base_1 = require("./base");
5
- /**
6
- * Enum representing the possible presence statuses of a user.
7
- */
8
- var Status;
9
- (function (Status) {
10
- Status["Online"] = "ONLINE";
11
- Status["Idle"] = "IDLE";
12
- Status["Busy"] = "DND";
13
- Status["Invisible"] = "OFFLINE";
14
- })(Status || (exports.Status = Status = {}));
15
- /**
16
- * Represents the presence of a user, including their status and custom text.
17
- *
18
- * @extends Base
19
- */
20
- class Presence extends base_1.Base {
21
- constructor() {
22
- super(...arguments);
23
- /** The custom status text of the user, or `null` if none is set. */
24
- this.text = null;
25
- /** The current status of the user (e.g., Online, Idle, Busy, Invisible). */
26
- this.status = Status.Invisible;
27
- }
28
- }
29
- exports.Presence = Presence;
30
- //# sourceMappingURL=presence.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"presence.js","sourceRoot":"","sources":["../../src/struct/presence.ts"],"names":[],"mappings":";;;AAAA,iCAA8B;AAE9B;;GAEG;AACH,IAAY,MAKX;AALD,WAAY,MAAM;IAChB,2BAAiB,CAAA;IACjB,uBAAa,CAAA;IACb,sBAAY,CAAA;IACZ,+BAAqB,CAAA;AACvB,CAAC,EALW,MAAM,sBAAN,MAAM,QAKjB;AAED;;;;GAIG;AACH,MAAa,QAAS,SAAQ,WAAI;IAAlC;;QACE,oEAAoE;QACpE,SAAI,GAAkB,IAAI,CAAC;QAE3B,4EAA4E;QAC5E,WAAM,GAAG,MAAM,CAAC,SAAS,CAAC;IAC5B,CAAC;CAAA;AAND,4BAMC"}
@@ -1,107 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Role = void 0;
4
- const index_1 = require("./index");
5
- const index_2 = require("../utils/index");
6
- /**
7
- * Represents a role in a server.
8
- *
9
- * @extends Base
10
- */
11
- class Role extends index_1.Base {
12
- /**
13
- * Creates a new Role instance.
14
- *
15
- * @param {Server} server - The server this role belongs to.
16
- * @param {APIRole & { id: string }} data - The raw data for the role from the API.
17
- */
18
- constructor(server, data) {
19
- super(server.client);
20
- this.server = server;
21
- /** The color of the role, or `null` if no color is set. */
22
- this.color = null;
23
- /** Whether the role is displayed separately in the member list. */
24
- this.hoist = false;
25
- this._patch(data);
26
- }
27
- /**
28
- * Updates the role instance with new data from the API.
29
- *
30
- * @param {APIRole & { _id?: string }} data - The raw data for the role from the API.
31
- * @param {FieldsRole[]} [clear=[]] - Fields to clear in the role.
32
- * @returns {this} The updated role instance.
33
- * @protected
34
- */
35
- _patch(data, clear = []) {
36
- var _a;
37
- super._patch(data);
38
- if (data.name)
39
- this.name = data.name;
40
- if (typeof data.hoist === "boolean")
41
- this.hoist = data.hoist;
42
- if (typeof data.rank === "number")
43
- this.rank = data.rank;
44
- if ("colour" in data)
45
- this.color = (_a = data.colour) !== null && _a !== void 0 ? _a : null;
46
- if (data.permissions) {
47
- const { a, d } = data.permissions;
48
- this.overwrite = {
49
- allow: new index_2.ChannelPermissions(a),
50
- deny: new index_2.ChannelPermissions(d),
51
- };
52
- }
53
- for (const field of clear) {
54
- if (field === "Colour")
55
- this.color = null;
56
- }
57
- return this;
58
- }
59
- /**
60
- * Gets the date when the role was created.
61
- *
62
- * @returns {Date} The creation date of the role.
63
- */
64
- get createdAt() {
65
- return index_2.UUID.timestampOf(this.id);
66
- }
67
- /**
68
- * Gets the timestamp of when the role was created.
69
- *
70
- * @returns {number} The creation timestamp of the role in milliseconds.
71
- */
72
- get createdTimestamp() {
73
- return this.createdAt.getTime();
74
- }
75
- /**
76
- * Gets the permissions overwrite for the role.
77
- *
78
- * @returns {Overwrite} The permissions overwrite for the role.
79
- */
80
- get permissions() {
81
- return this.overwrite;
82
- }
83
- /**
84
- * Deletes the role from the server.
85
- *
86
- * @returns {Promise<void>} A promise that resolves when the role is deleted.
87
- *
88
- * @example
89
- * ```typescript
90
- * await role.delete();
91
- * console.log("Role deleted successfully.");
92
- * ```
93
- */
94
- delete() {
95
- return this.server.roles.delete(this);
96
- }
97
- /**
98
- * Converts the role to a string representation.
99
- *
100
- * @returns {string} A string representation of the role in the format `<@&roleId>`.
101
- */
102
- toString() {
103
- return `<@&${this.id}>`;
104
- }
105
- }
106
- exports.Role = Role;
107
- //# sourceMappingURL=role.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"role.js","sourceRoot":"","sources":["../../src/struct/role.ts"],"names":[],"mappings":";;;AACA,mCAAkD;AAClD,0CAA0D;AAE1D;;;;GAIG;AACH,MAAa,IAAK,SAAQ,YAAI;IAgB5B;;;;;OAKG;IACH,YACS,MAAc,EACrB,IAA8B;QAE9B,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAHd,WAAM,GAAN,MAAM,CAAQ;QAnBvB,2DAA2D;QAC3D,UAAK,GAAkB,IAAI,CAAC;QAE5B,mEAAmE;QACnE,UAAK,GAAG,KAAK,CAAC;QAmBZ,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IAED;;;;;;;OAOG;IACO,MAAM,CACd,IAAgC,EAChC,QAAsB,EAAE;;QAExB,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAEnB,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