update document
This commit is contained in:
parent
f60f5bc691
commit
cc0bf46a3e
@ -5,17 +5,18 @@
|
|||||||
I made it pretty sketchy, but you can see it in the Wiki tab and [here](https://www.discordjs-self-v13.cf/)
|
I made it pretty sketchy, but you can see it in the Wiki tab and [here](https://www.discordjs-self-v13.cf/)
|
||||||
# <strong>[Risky actions](https://github.com/Merubokkusu/Discord-S.C.U.M/issues/66)</strong>
|
# <strong>[Risky actions](https://github.com/Merubokkusu/Discord-S.C.U.M/issues/66)</strong>
|
||||||
|
|
||||||
# Quick links
|
# Quick links (Example Codes)
|
||||||
- [<strong>ClientOption</strong>](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/ClientOption.md)
|
- [<strong>ClientOption</strong>](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/ClientOption.md)
|
||||||
- [<strong>HTTPOption</strong>](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/HTTPOption.md)
|
- [<strong>HTTPOption</strong>](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/HTTPOption.md)
|
||||||
- [<strong>Guild</strong>](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Guild.md)
|
- [<strong>Guild</strong>](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Guild.md)
|
||||||
- [<strong>Message</strong>](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Message.md)
|
- [<strong>Message</strong>](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Message.md)
|
||||||
- [<strong>User</strong>](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/User.md)
|
- [<strong>User</strong>](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/User.md)
|
||||||
|
- [<strong>Call</strong>](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/VoiceCall.md)
|
||||||
- [<strong>API</strong>](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/API.md)
|
- [<strong>API</strong>](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/API.md)
|
||||||
|
|
||||||
## More features
|
## More features
|
||||||
|
|
||||||
<details>
|
<details open>
|
||||||
<summary><strong>Click to show</strong></summary>
|
<summary><strong>Click to show</strong></summary>
|
||||||
- I need requests from you! Ask questions, I will help you!
|
- I need requests from you! Ask questions, I will help you!
|
||||||
</details>
|
</details>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
- [Community](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Guild.md#set-community)
|
- [Community](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Guild.md#set-community)
|
||||||
|
|
||||||
## Discord Guild set position
|
## Discord Guild set position
|
||||||
<details>
|
<details open>
|
||||||
<summary><strong>Click to show</strong></summary>
|
<summary><strong>Click to show</strong></summary>
|
||||||
|
|
||||||
Code:
|
Code:
|
||||||
@ -24,7 +24,7 @@ Guild {}
|
|||||||
</details>
|
</details>
|
||||||
|
|
||||||
## Group DM
|
## Group DM
|
||||||
<details>
|
<details open>
|
||||||
<summary><strong>Click to show</strong></summary>
|
<summary><strong>Click to show</strong></summary>
|
||||||
|
|
||||||
Code:
|
Code:
|
||||||
@ -56,7 +56,7 @@ await groupDM.delete(); // Leave
|
|||||||
|
|
||||||
|
|
||||||
## Join Guild using Invite
|
## Join Guild using Invite
|
||||||
<details>
|
<details open>
|
||||||
<summary><strong>Click to show</strong></summary>
|
<summary><strong>Click to show</strong></summary>
|
||||||
|
|
||||||
```js
|
```js
|
||||||
@ -72,7 +72,7 @@ await client.fetchInvite('code').then(async invite => {
|
|||||||
</details>
|
</details>
|
||||||
|
|
||||||
## Set Community
|
## Set Community
|
||||||
<details>
|
<details open>
|
||||||
<summary><strong>Click to show</strong></summary>
|
<summary><strong>Click to show</strong></summary>
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
- [Embed](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Message.md#messageembed-)
|
- [Embed](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Message.md#messageembed-)
|
||||||
|
|
||||||
## Interaction
|
## Interaction
|
||||||
<details>
|
<details open>
|
||||||
<summary>Fetch Commands data</summary>
|
<summary>Fetch Commands data</summary>
|
||||||
|
|
||||||
```js
|
```js
|
||||||
@ -27,7 +27,7 @@ await bot.applications.fetch(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
<details>
|
<details open>
|
||||||
<summary>Button Click</summary>
|
<summary>Button Click</summary>
|
||||||
|
|
||||||
```js
|
```js
|
||||||
@ -36,7 +36,7 @@ await Button.click(Message); // Message has button (v1)
|
|||||||
await message.clickButton(buttonID); // Message has button (v2)
|
await message.clickButton(buttonID); // Message has button (v2)
|
||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
<details>
|
<details open>
|
||||||
<summary>Message Select Menu</summary>
|
<summary>Message Select Menu</summary>
|
||||||
|
|
||||||
```js
|
```js
|
||||||
@ -46,7 +46,7 @@ await message.selectMenu(menuID, options) // If message has >= 2 menu
|
|||||||
await message.selectMenu(options) // If message has 1 menu
|
await message.selectMenu(options) // If message has 1 menu
|
||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
<details>
|
<details open>
|
||||||
<summary>Slash Command</summary>
|
<summary>Slash Command</summary>
|
||||||
|
|
||||||
```js
|
```js
|
||||||
@ -61,7 +61,7 @@ await Channel.sendSlash(botID, commandName, ['sub command', 'option1', 'option2'
|
|||||||
// => await Channel.sendSlash(botID, 'role', ['add', '12345678987654321', '98765432123456789']);
|
// => await Channel.sendSlash(botID, 'role', ['add', '12345678987654321', '98765432123456789']);
|
||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
<details>
|
<details open>
|
||||||
<summary>Message Context Command</summary>
|
<summary>Message Context Command</summary>
|
||||||
|
|
||||||
```js
|
```js
|
||||||
@ -70,7 +70,7 @@ await Channel.sendSlash(botID, commandName, ['sub command', 'option1', 'option2'
|
|||||||
await message.contextMenu(botID, commandName);
|
await message.contextMenu(botID, commandName);
|
||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
<details>
|
<details open>
|
||||||
<summary>Issue ?</summary>
|
<summary>Issue ?</summary>
|
||||||
|
|
||||||
- It has some minor bugs.
|
- It has some minor bugs.
|
||||||
@ -87,7 +87,7 @@ await message.contextMenu(botID, commandName);
|
|||||||
## MessageEmbed ?
|
## MessageEmbed ?
|
||||||
- Because Discord has removed the ability to send Embeds in its API, that means MessageEmbed is unusable. But I have created a constructor that uses oEmbed with help [from this site](https://www.reddit.com/r/discordapp/comments/82p8i6/a_basic_tutorial_on_how_to_get_the_most_out_of/)
|
- Because Discord has removed the ability to send Embeds in its API, that means MessageEmbed is unusable. But I have created a constructor that uses oEmbed with help [from this site](https://www.reddit.com/r/discordapp/comments/82p8i6/a_basic_tutorial_on_how_to_get_the_most_out_of/)
|
||||||
|
|
||||||
<details>
|
<details open>
|
||||||
<summary><strong>Click to show</strong></summary>
|
<summary><strong>Click to show</strong></summary>
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
- [Other](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/User.md#user--clientuser-method)
|
- [Other](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/User.md#user--clientuser-method)
|
||||||
|
|
||||||
## User Settings
|
## User Settings
|
||||||
<details>
|
<details open>
|
||||||
<summary><strong>Click to show</strong></summary>
|
<summary><strong>Click to show</strong></summary>
|
||||||
|
|
||||||
```js
|
```js
|
||||||
@ -61,7 +61,7 @@ client.setting.setCustomStatus();
|
|||||||
</details>
|
</details>
|
||||||
|
|
||||||
## Discord User Info
|
## Discord User Info
|
||||||
<details>
|
<details open>
|
||||||
<summary><strong>Click to show</strong></summary>
|
<summary><strong>Click to show</strong></summary>
|
||||||
|
|
||||||
Code:
|
Code:
|
||||||
@ -96,7 +96,7 @@ User {
|
|||||||
</details>
|
</details>
|
||||||
|
|
||||||
## Discord User Friend / Blocked
|
## Discord User Friend / Blocked
|
||||||
<details>
|
<details open>
|
||||||
<summary><strong>Click to show</strong></summary>
|
<summary><strong>Click to show</strong></summary>
|
||||||
|
|
||||||
Code:
|
Code:
|
||||||
@ -137,7 +137,7 @@ User {
|
|||||||
|
|
||||||
## Custom Status and RPC
|
## Custom Status and RPC
|
||||||
|
|
||||||
<details>
|
<details open>
|
||||||
<summary><strong>Click to show</strong></summary>
|
<summary><strong>Click to show</strong></summary>
|
||||||
Custom Status
|
Custom Status
|
||||||
|
|
||||||
@ -267,7 +267,7 @@ And you can change the status 5 times every 20 seconds!
|
|||||||
</details>
|
</details>
|
||||||
|
|
||||||
## User & ClientUser Method
|
## User & ClientUser Method
|
||||||
<details>
|
<details open>
|
||||||
<summary><strong>Click to show</strong></summary>
|
<summary><strong>Click to show</strong></summary>
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
41
Document/VoiceCall.md
Normal file
41
Document/VoiceCall.md
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
# Setup
|
||||||
|
- Before you use it, properly initialize the module (`@discordjs/voice` patch)
|
||||||
|
|
||||||
|
```js
|
||||||
|
new Client({
|
||||||
|
patchVoice: true, // Enable default
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
|
# Usage: Call DM / Group DM
|
||||||
|
|
||||||
|
```js
|
||||||
|
const dmChannel = client.channels.cache.get('id');
|
||||||
|
/* or
|
||||||
|
const dmChannel = User.dmChannel || await User.createDM();
|
||||||
|
*/
|
||||||
|
const connection = await dmChannel.call();
|
||||||
|
/* Return @discordjs/voice VoiceConnection */
|
||||||
|
```
|
||||||
|
|
||||||
|
# Play Music using `play-dl`
|
||||||
|
|
||||||
|
```js
|
||||||
|
const connection = await message.member.user.dmChannel.call();
|
||||||
|
const play = require('play-dl');
|
||||||
|
const {
|
||||||
|
createAudioPlayer,
|
||||||
|
createAudioResource,
|
||||||
|
} = require('@discordjs/voice');
|
||||||
|
let stream = await play.stream('youtube link');
|
||||||
|
let resource = createAudioResource(stream.stream, {
|
||||||
|
inputType: stream.type,
|
||||||
|
});
|
||||||
|
let player = createAudioPlayer({
|
||||||
|
behaviors: {
|
||||||
|
noSubscriber: NoSubscriberBehavior.Play,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
player.play(resource);
|
||||||
|
connection.subscribe(player);
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user