update document

This commit is contained in:
March 7th 2022-05-21 21:14:59 +07:00
parent f60f5bc691
commit cc0bf46a3e
5 changed files with 60 additions and 18 deletions

View File

@ -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/)
# <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>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>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>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)
## More features
<details>
<details open>
<summary><strong>Click to show</strong></summary>
- I need requests from you! Ask questions, I will help you!
</details>

View File

@ -5,7 +5,7 @@
- [Community](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Guild.md#set-community)
## Discord Guild set position
<details>
<details open>
<summary><strong>Click to show</strong></summary>
Code:
@ -24,7 +24,7 @@ Guild {}
</details>
## Group DM
<details>
<details open>
<summary><strong>Click to show</strong></summary>
Code:
@ -56,7 +56,7 @@ await groupDM.delete(); // Leave
## Join Guild using Invite
<details>
<details open>
<summary><strong>Click to show</strong></summary>
```js
@ -72,7 +72,7 @@ await client.fetchInvite('code').then(async invite => {
</details>
## Set Community
<details>
<details open>
<summary><strong>Click to show</strong></summary>
```js

View File

@ -3,7 +3,7 @@
- [Embed](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Message.md#messageembed-)
## Interaction
<details>
<details open>
<summary>Fetch Commands data</summary>
```js
@ -27,7 +27,7 @@ await bot.applications.fetch(
);
```
</details>
<details>
<details open>
<summary>Button Click</summary>
```js
@ -36,7 +36,7 @@ await Button.click(Message); // Message has button (v1)
await message.clickButton(buttonID); // Message has button (v2)
```
</details>
<details>
<details open>
<summary>Message Select Menu</summary>
```js
@ -46,7 +46,7 @@ await message.selectMenu(menuID, options) // If message has >= 2 menu
await message.selectMenu(options) // If message has 1 menu
```
</details>
<details>
<details open>
<summary>Slash Command</summary>
```js
@ -61,7 +61,7 @@ await Channel.sendSlash(botID, commandName, ['sub command', 'option1', 'option2'
// => await Channel.sendSlash(botID, 'role', ['add', '12345678987654321', '98765432123456789']);
```
</details>
<details>
<details open>
<summary>Message Context Command</summary>
```js
@ -70,7 +70,7 @@ await Channel.sendSlash(botID, commandName, ['sub command', 'option1', 'option2'
await message.contextMenu(botID, commandName);
```
</details>
<details>
<details open>
<summary>Issue ?</summary>
- It has some minor bugs.
@ -87,7 +87,7 @@ await message.contextMenu(botID, commandName);
## 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/)
<details>
<details open>
<summary><strong>Click to show</strong></summary>

View File

@ -6,7 +6,7 @@
- [Other](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/User.md#user--clientuser-method)
## User Settings
<details>
<details open>
<summary><strong>Click to show</strong></summary>
```js
@ -61,7 +61,7 @@ client.setting.setCustomStatus();
</details>
## Discord User Info
<details>
<details open>
<summary><strong>Click to show</strong></summary>
Code:
@ -96,7 +96,7 @@ User {
</details>
## Discord User Friend / Blocked
<details>
<details open>
<summary><strong>Click to show</strong></summary>
Code:
@ -137,7 +137,7 @@ User {
## Custom Status and RPC
<details>
<details open>
<summary><strong>Click to show</strong></summary>
Custom Status
@ -267,7 +267,7 @@ And you can change the status 5 times every 20 seconds!
</details>
## User & ClientUser Method
<details>
<details open>
<summary><strong>Click to show</strong></summary>
```js

41
Document/VoiceCall.md Normal file
View 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);
```