djs-selfbot-v13 1.0.0 → 1.0.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.
- package/package.json +1 -1
- package/src/structures/Message.js +28 -0
- package/typings/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1176,6 +1176,34 @@ class Message extends Base {
|
|
|
1176
1176
|
}
|
|
1177
1177
|
return contextCMD.sendContextMenu(this, true);
|
|
1178
1178
|
}
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* Report Message
|
|
1182
|
+
* @param {Arrray<number>} breadcrumbs Options for reporting
|
|
1183
|
+
* @param {Object} [elements={}] Metadata
|
|
1184
|
+
* @returns {Promise<{ report_id: Snowflake }>}
|
|
1185
|
+
* @example
|
|
1186
|
+
* // Report Category
|
|
1187
|
+
* // - <hidden>MESSAGE_WELCOME (3)</hidden>
|
|
1188
|
+
* // - Something else (28)
|
|
1189
|
+
* // - Hacks, cheats, phishing or malicious links (72)
|
|
1190
|
+
* message.report([3, 28, 72]).then(console.log);
|
|
1191
|
+
* // { "report_id": "1199663489988440124" }
|
|
1192
|
+
*/
|
|
1193
|
+
report(breadcrumbs, elements = {}) {
|
|
1194
|
+
return this.client.api.reporting.message.post({
|
|
1195
|
+
data: {
|
|
1196
|
+
version: '1.0',
|
|
1197
|
+
variant: '4',
|
|
1198
|
+
language: 'en',
|
|
1199
|
+
breadcrumbs,
|
|
1200
|
+
elements,
|
|
1201
|
+
channel_id: this.channelId,
|
|
1202
|
+
message_id: this.id,
|
|
1203
|
+
name: 'message',
|
|
1204
|
+
},
|
|
1205
|
+
});
|
|
1206
|
+
}
|
|
1179
1207
|
}
|
|
1180
1208
|
|
|
1181
1209
|
exports.Message = Message;
|
package/typings/index.d.ts
CHANGED
|
@@ -1896,6 +1896,7 @@ export class Interaction<Cached extends CacheType = CacheType> extends Base {
|
|
|
1896
1896
|
public isMessageComponent(): this is MessageComponentInteraction<Cached>;
|
|
1897
1897
|
public isModalSubmit(): this is ModalSubmitInteraction<Cached>;
|
|
1898
1898
|
public isAnySelectMenu(): this is SelectMenuInteraction<Cached>;
|
|
1899
|
+
public report(breadcrumbs: number[], elements?: object): Promise<{ report_id: Snowflake }>;
|
|
1899
1900
|
/** @deprecated Use {@link Interaction#isStringSelect()} instead */
|
|
1900
1901
|
public isSelectMenu(): this is StringSelectInteraction<Cached>;
|
|
1901
1902
|
public isStringSelect(): this is StringSelectInteraction<Cached>;
|