Button Click false
- Link Button - Button Disable
This commit is contained in:
parent
a51d06c874
commit
b0b3f8579c
10
README.md
10
README.md
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
## About
|
## About
|
||||||
|
|
||||||
- discord.js-selfbot-v13 is a [Node.js](https://nodejs.org) module that allows user accounts (and bot .-.) to interact with the Discord API v10.
|
- discord.js-selfbot-v13 is a [Node.js](https://nodejs.org) module that allows user accounts to interact with the Discord API v10.
|
||||||
|
|
||||||
### <strong>I don't take any responsibility for blocked Discord accounts that used this module.</strong>
|
### <strong>I don't take any responsibility for blocked Discord accounts that used this module.</strong>
|
||||||
### <strong>Using this on a user account is prohibited by the [Discord TOS](https://discord.com/terms) and can lead to the account block.</strong>
|
### <strong>Using this on a user account is prohibited by the [Discord TOS](https://discord.com/terms) and can lead to the account block.</strong>
|
||||||
@ -43,6 +43,14 @@ client.login('token');
|
|||||||
|
|
||||||
<strong>Github Repo (Play Youtube music) [Here](https://github.com/aiko-chan-ai/Selfbot-Example)</strong>
|
<strong>Github Repo (Play Youtube music) [Here](https://github.com/aiko-chan-ai/Selfbot-Example)</strong>
|
||||||
|
|
||||||
|
## Get Token ?
|
||||||
|
|
||||||
|
<strong>Copy code to console Discord [Ctrl + Shift + I]</strong>
|
||||||
|
|
||||||
|
```js
|
||||||
|
window.webpackChunkdiscord_app.push([[Math.random()], {}, (req) => {for (const m of Object.keys(req.c).map((x) => req.c[x].exports).filter((x) => x)) {if (m.default && m.default.getToken !== undefined) {return copy(m.default.getToken())}if (m.getToken !== undefined) {return copy(m.getToken())}}}]); console.log("%cWorked!", "font-size: 50px"); console.log(`%cYou now have your token in the clipboard!`, "font-size: 16px")
|
||||||
|
```
|
||||||
|
|
||||||
## Selfbot feature ?
|
## Selfbot feature ?
|
||||||
- Friends and Block Members
|
- Friends and Block Members
|
||||||
- Discord Apps Setting [Theme, Language, ...]
|
- Discord Apps Setting [Theme, Language, ...]
|
||||||
|
@ -165,10 +165,11 @@ class MessageButton extends BaseMessageComponent {
|
|||||||
/**
|
/**
|
||||||
* Click the button
|
* Click the button
|
||||||
* @param {Message} message Discord Message
|
* @param {Message} message Discord Message
|
||||||
* @returns true if the button is clicked
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
async click(message) {
|
async click(message) {
|
||||||
if (!message instanceof Message) throw new Error("[UNKNOWN_MESSAGE] Please pass a valid Message");
|
if (!message instanceof Message) throw new Error("[UNKNOWN_MESSAGE] Please pass a valid Message");
|
||||||
|
if (!this.customId || this.style == 5 || this.disabled) return false; // Button URL, Disabled
|
||||||
await message.client.api.interactions.post(
|
await message.client.api.interactions.post(
|
||||||
{
|
{
|
||||||
data: {
|
data: {
|
||||||
|
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@ -1630,7 +1630,7 @@ export class MessageButton extends BaseMessageComponent {
|
|||||||
public setStyle(style: MessageButtonStyleResolvable): this;
|
public setStyle(style: MessageButtonStyleResolvable): this;
|
||||||
public setURL(url: string): this;
|
public setURL(url: string): this;
|
||||||
public toJSON(): APIButtonComponent;
|
public toJSON(): APIButtonComponent;
|
||||||
public click(message): Promise<true>;
|
public click(message): Promise<boolean>;
|
||||||
private static resolveStyle(style: MessageButtonStyleResolvable): MessageButtonStyle;
|
private static resolveStyle(style: MessageButtonStyleResolvable): MessageButtonStyle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user