Skip to content

Commit

Permalink
🔧 discord-together v1.3.25
Browse files Browse the repository at this point in the history
  • Loading branch information
RemyK888 authored Nov 14, 2021
1 parent 844bc6d commit fee134d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $ npm install discord.js@latest
- Multiple server
- Discord support
- Lightweight
- 13+ games available
- 15+ games available

<br/>

Expand Down Expand Up @@ -132,6 +132,13 @@ client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'awkw
});
```

- Puttparty
```js
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'puttparty').then(async invite => {
return message.channel.send(`${invite.code}`);
});
```

# 📷 Image

![Invite link](https://media.discordapp.net/attachments/835896457454026802/837968506846183474/2021-05-01_10h26_17.png)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discord-together",
"version": "1.3.2",
"version": "1.3.25",
"description": "Play games or watch YouTube videos together on Discord! More than 13 games available!",
"main": "index.js",
"types": "./types/index.d.ts",
Expand Down
6 changes: 4 additions & 2 deletions src/DiscordTogether.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ const defaultApplications = {
doodlecrew: '878067389634314250', // Note : First package to offer doodlecrew, any other package offering it will be clearly inspired by it
awkword: '879863881349087252', // Note : First package to offer awkword, any other package offering it will be clearly inspired by it
spellcast: '852509694341283871', // Note : First package to offer spellcast, any other package offering it will be clearly inspired by it
checkers: '832013003968348200' // Note : First package to offer checkers, any other package offering it will be clearly inspired by it
checkers: '832013003968348200', // Note : First package to offer checkers, any other package offering it will be clearly inspired by it
puttparty: '763133495793942528', // Note : First package to offer puttparty, any other package offering it will be clearly inspired by it
//sketchyartist: '879864070101172255' // Note : First package to offer sketchyartist, any other package offering it will be clearly inspired by it
};

/**
Expand All @@ -35,7 +37,7 @@ class DiscordTogether {
*
* client.on('message', async message => {
* if (message.content === 'start') {
* client.discordTogether.createTogetherCode(message.member.voice.channelID, 'checkers').then(async invite => {
* client.discordTogether.createTogetherCode(message.member.voice.channelID, 'puttparty').then(async invite => {
* return message.channel.send(`${invite.code}`);
* });
* };
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ client.discordTogether = new DiscordTogether(client);
client.on('messageCreate', async message => { // 'message' for Discord.js v12
if (message.content === 'start') {
if(message.member.voice.channel) {
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'checkers').then(async invite => { // message.member.voice.channelId for Discord.js v12
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'puttparty').then(async invite => { // message.member.voice.channelId for Discord.js v12
return message.channel.send(`${invite.code}`); // Click the blue link !
});
};
Expand Down
2 changes: 2 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ declare class DiscordTogether<T extends {
awkword: string;
spellcast: string;
checkers: string;
puttparty: string;
} & T;
/**
* Create a Youtube Together invite code (note: send the invite using markdown link)
Expand Down Expand Up @@ -72,6 +73,7 @@ declare class DiscordTogether<T extends {
awkword: string;
spellcast: string;
checkers: string;
puttparty: string;
} & T)): Promise<{
code: string;
}>;
Expand Down

0 comments on commit fee134d

Please sign in to comment.