1.0.0 • Published 3 years ago
youtube-together-types v1.0.0
wanna make a discord app? well follow these steps...
get discord.js
npm i discord.js
get youtube-together.js
npm i youtube-together.js
starting code
const Discord = require('discord.js');
const client = new Discord.Client();
const { DiscordTogether } = require('youtube-together.js');
client.discordTogether = new DiscordTogether(client);
client.on('message', async message => {
if (message.content === '-youtube') {
if(message.member.voice.channel) {
client.discordTogether.createTogetherCode(message.member.voice.channelID, 'youtube').then(async invite => {
return message.channel.send(`${invite.code}`);
});
};
};
});
client.login('TOKEN');
and there you go! also replace TOKEN with your app token 🙂
CREDITS - RemyK
CREATED - MrTahfaru
enjoy ❤
1.0.0
3 years ago