refactor: vendor content as regular files (remove git submodules) so CI builds don't need GitHub auth

This commit is contained in:
asepharyana
2026-07-02 02:38:04 +07:00
parent 7b106fe562
commit 134674d7dd
452 changed files with 75011 additions and 4 deletions
+21
View File
@@ -0,0 +1,21 @@
const { Client, MessageAttachment } = require('../src/index');
const client = new Client();
client.on('ready', async () => {
console.log(`${client.user.username} is ready!`);
const channel = client.channels.cache.get('channel_id');
const attachment = new MessageAttachment(
'./test.mp3', // path file
'random_file_name.ogg', // must be .ogg
{
waveform: 'AAAAAAAAAAAA',
duration_secs: 1, // any number you want
},
);
channel.send({
files: [attachment],
flags: 'IS_VOICE_MESSAGE',
});
});
client.login('token');