discord.js-selfbot-v13/Document/Message.md

62 lines
2.1 KiB
Markdown
Raw Normal View History

2023-05-27 09:34:15 +00:00
## Voice Message
```js
const channel = client.channels.cache.get('cid');
const attachment = new Discord.MessageAttachment(
'./test.mp3', // path file
'test.ogg', // must be .ogg
{
waveform: '=',
duration_secs: 1, // any number you want
},
);
channel.send({
files: [attachment],
flags: 'IS_VOICE_MESSAGE',
});
```
2022-04-10 13:11:20 +00:00
## Interaction
2022-05-21 14:14:59 +00:00
<details open>
2022-04-10 13:11:20 +00:00
<summary>Slash Command</summary>
2022-12-08 08:14:17 +00:00
### [Click here](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/SlashCommand.md)
2022-06-13 11:50:22 +00:00
2022-04-10 13:11:20 +00:00
</details>
2022-05-21 14:14:59 +00:00
<details open>
2022-04-10 13:11:20 +00:00
## MessageEmbed ?
2022-04-11 06:20:03 +00:00
- 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/)
2022-04-10 13:11:20 +00:00
2022-05-21 14:14:59 +00:00
<details open>
2022-04-10 13:11:20 +00:00
<summary><strong>Click to show</strong></summary>
Code:
```js
const Discord = require('discord.js-selfbot-v13');
2024-01-14 05:33:11 +00:00
const w = new Discord.WebEmbed()
2022-04-10 13:11:20 +00:00
.setAuthor({ name: 'hello', url: 'https://google.com' })
.setColor('RED')
.setDescription('description uh')
.setProvider({ name: 'provider', url: 'https://google.com' })
.setTitle('This is Title')
.setURL('https://google.com')
2022-04-10 13:11:20 +00:00
.setImage(
'https://cdn.discordapp.com/attachments/820557032016969751/959093026695835648/unknown.png',
)
.setVideo(
'https://cdn.discordapp.com/attachments/877060758092021801/957691816143097936/The_Quintessential_Quintuplets_And_Rick_Astley_Autotune_Remix.mp4',
);
2024-01-14 05:33:11 +00:00
message.channel.send({ content: `Hello world ${Discord.WebEmbed.hiddenEmbed} ${w}` });
2022-04-10 13:11:20 +00:00
```
### Features & Issues
2022-04-14 17:20:07 +00:00
- <strong>Only works with Discord Web and Discord Client (no custom theme installed)</strong>
- No Timestamp, Footer, Fields, Author iconURL
2022-04-10 13:11:20 +00:00
- Video with Embed working
- Can only choose between image and thumbnail
2022-04-10 13:11:20 +00:00
- Description limit 350 characters
- If you use hidden mode you must make sure your custom content is less than 1000 characters without nitro (because hidden mode uses 1000 characters + URL)
2022-04-14 17:20:07 +00:00
</details>