1.0.0 • Published 3 years ago

youtube-together-types v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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 ❤