djs-selfbot-v13 3.7.7 → 3.7.9

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.
package/README.md CHANGED
@@ -19,7 +19,7 @@
19
19
  <p>
20
20
  <a href="https://www.npmjs.com/package/discord.js-selfbot-v13"><img src="https://img.shields.io/npm/v/discord.js-selfbot-v13.svg" alt="npm version" /></a>
21
21
  <a href="https://www.npmjs.com/package/discord.js-selfbot-v13"><img src="https://img.shields.io/npm/dt/discord.js-selfbot-v13.svg" alt="npm downloads" /></a>
22
- <a href="https://github.com/aiko-chan-ai/discord.js-selfbot-v13/actions"><img src="https://github.com/aiko-chan-ai/discord.js-selfbot-v13/actions/workflows/lint.yml/badge.svg" alt="Tests status" /></a>
22
+ <a href="https://github.com/002-sans/djs-selfbot-v13/actions"><img src="https://github.com/002-sans/djs-selfbot-v13/actions/workflows/lint.yml/badge.svg" alt="Tests status" /></a>
23
23
  </p>
24
24
  </div>
25
25
 
@@ -57,8 +57,10 @@
57
57
  - `application.disableIntents()` - Disable bot intents
58
58
 
59
59
  ### RPC Enhancements
60
- - `rpc.setDetailsURL(url)` - Set a URL for RPC details
61
- - `rpc.setStateURL(url)` - Set a URL for RPC state
60
+ - `rpc.setDetailsURL(url)` - Set a URL for RPC details (now fully functional)
61
+ - `rpc.setStateURL(url)` - Set a URL for RPC state (now fully functional)
62
+ - `rpc.details_url` - Property to access the details URL
63
+ - `rpc.state_url` - Property to access the state URL
62
64
 
63
65
  ### User Profile Customization
64
66
  - `client.user.setNameStyle(fontName, effectName, color1, color2?)` - Set display name style with font, effect and colors
@@ -107,7 +109,7 @@
107
109
 
108
110
  ### <strong>[Document Website](https://discordjs-self-v13.netlify.app/)</strong>
109
111
 
110
- ### <strong>[Example Code](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/tree/main/examples)</strong>
112
+ ### <strong>[Example Code](https://github.com/002-sans/djs-selfbot-v13/tree/main/examples)</strong>
111
113
 
112
114
  ## Features (User)
113
115
  - [x] Message
@@ -141,62 +143,6 @@ client.on('ready', async () => {
141
143
  client.login('token');
142
144
  ```
143
145
 
144
- ### Advanced Examples
145
-
146
- #### Message Search
147
- ```js
148
- // Search for messages with images in a channel
149
- const results = await channel.search({ has: ['image'] });
150
-
151
- // Search for messages by a specific author
152
- const userMessages = await channel.search({
153
- authorId: '123456789012345678',
154
- limit: 10
155
- });
156
-
157
- // Search for pinned messages
158
- const pinnedMessages = await channel.search({ pinned: true });
159
-
160
- // Search for messages before a specific date
161
- const oldMessages = await channel.search({
162
- maxTime: '2023-12-01',
163
- limit: 50
164
- });
165
-
166
- // Search for messages with multiple filters
167
- const complexSearch = await channel.search({
168
- has: ['link', 'embed'],
169
- sortBy: 'timestamp',
170
- sortOrder: 'desc',
171
- offset: 20,
172
- maxTime: new Date('2023-12-31')
173
- });
174
-
175
- // Guild-wide search for messages in a specific channel
176
- const guildChannelSearch = await guild.search({
177
- channelId: '123456789012345678',
178
- authorId: '987654321098765432',
179
- has: ['image']
180
- });
181
-
182
- // Guild-wide search across all channels
183
- const guildWideSearch = await guild.search({
184
- has: ['video'],
185
- limit: 100
186
- });
187
- ```
188
-
189
- #### Guild Read State Management
190
- ```js
191
- // Mark all channels in a guild as read
192
- await guild.markRead();
193
-
194
- // Mark specific channels as read
195
- await guild.markRead([
196
- { channel_id: '123456789012345678', message_id: '987654321098765432' },
197
- { channel_id: '876543210987654321', message_id: '123456789012345678' }
198
- ]);
199
- ```
200
146
 
201
147
  ## Get Token ?
202
148
 
@@ -234,7 +180,7 @@ console.log(`%cYou now have your token in the clipboard!`, 'font-size: 16px');
234
180
  - See [the contribution guide](https://github.com/discordjs/discord.js/blob/main/.github/CONTRIBUTING.md) if you'd like to submit a PR.
235
181
 
236
182
  ## Need help?
237
- Github Discussion: [Here](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/discussions)
183
+ Github Discussion: [Here](https://github.com/002-sans/djs-selfbot-v13/discussions)
238
184
 
239
185
  ## Credits
240
186
  - [Discord.js](https://github.com/discordjs/discord.js)
@@ -246,4 +192,4 @@ Github Discussion: [Here](https://github.com/aiko-chan-ai/discord.js-selfbot-v13
246
192
 
247
193
  ## Star History
248
194
 
249
- [![Star History Chart](https://api.star-history.com/svg?repos=aiko-chan-ai/discord.js-selfbot-v13&type=Date)](https://star-history.com/#aiko-chan-ai/discord.js-selfbot-v13&Date)
195
+ [![Star History Chart](https://api.star-history.com/svg?repos=002-sans/djs-selfbot-v13&type=Date)](https://star-history.com/#002-sans/djs-selfbot-v13&Date)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "djs-selfbot-v13",
3
- "version": "3.7.7",
3
+ "version": "3.7.9",
4
4
  "description": "An unofficial discord.js fork for creating selfbots",
5
5
  "main": "./src/index.js",
6
6
  "types": "./typings/index.d.ts",
@@ -304,6 +304,16 @@ class Activity {
304
304
  this.details = null;
305
305
  }
306
306
 
307
+ if ('details_url' in data) {
308
+ /**
309
+ * URL for the details of the activity
310
+ * @type {?string}
311
+ */
312
+ this.details_url = data.details_url;
313
+ } else {
314
+ this.details_url = null;
315
+ }
316
+
307
317
  if ('state' in data) {
308
318
  /**
309
319
  * State of the activity
@@ -314,6 +324,16 @@ class Activity {
314
324
  this.state = null;
315
325
  }
316
326
 
327
+ if ('state_url' in data) {
328
+ /**
329
+ * URL for the state of the activity
330
+ * @type {?string}
331
+ */
332
+ this.state_url = data.state_url;
333
+ } else {
334
+ this.state_url = null;
335
+ }
336
+
317
337
  if ('sync_id' in data || 'syncId' in data) {
318
338
  /**
319
339
  * The sync id of the activity
@@ -392,7 +412,9 @@ class Activity {
392
412
  this.type === activity.type &&
393
413
  this.url === activity.url &&
394
414
  this.state === activity.state &&
415
+ this.state_url === activity.state_url &&
395
416
  this.details === activity.details &&
417
+ this.details_url == activity.details_url &&
396
418
  this.emoji?.id === activity.emoji?.id &&
397
419
  this.emoji?.name === activity.emoji?.name)
398
420
  );
@@ -285,6 +285,7 @@ export class Activity {
285
285
  public readonly createdAt: Date;
286
286
  public createdTimestamp: number;
287
287
  public details: string | null;
288
+ public details_url: string | null;
288
289
  public emoji: EmojiIdentifierResolvable | null;
289
290
  public flags: Readonly<ActivityFlags>;
290
291
  public id: string;
@@ -296,6 +297,7 @@ export class Activity {
296
297
  public platform: ActivityPlatform | null;
297
298
  public sessionId: string | null;
298
299
  public state: string | null;
300
+ public state_url: string | null;
299
301
  public syncId: string | null;
300
302
  public timestamps: {
301
303
  start: number | null;