feat: Voice Message docs
This commit is contained in:
parent
b75688ee28
commit
b815c8b3c2
@ -1,7 +1,19 @@
|
|||||||
# Quick Links:
|
## Voice Message
|
||||||
- [Interaction](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Message.md#interaction)
|
```js
|
||||||
- [Embed](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/Message.md#messageembed-)
|
const channel = client.channels.cache.get('cid');
|
||||||
- [Slash command demo](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/SlashCommand.md)
|
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',
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
## Interaction
|
## Interaction
|
||||||
<details open>
|
<details open>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -42,6 +42,7 @@ class MessagePayload {
|
|||||||
* @property {Buffer|string|Stream} attachment The original attachment that generated this file
|
* @property {Buffer|string|Stream} attachment The original attachment that generated this file
|
||||||
* @property {string} name The name of this file
|
* @property {string} name The name of this file
|
||||||
* @property {Buffer|Stream} file The file to be sent to the API
|
* @property {Buffer|Stream} file The file to be sent to the API
|
||||||
|
* @extends {APIAttachment}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user