Skip to content

Commit

Permalink
🏆 discord-together v1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RemyK888 authored Nov 6, 2021
1 parent 65c92c5 commit 844bc6d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
8 changes: 7 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
- 12+ games available
- 13+ games available

<br/>

Expand Down Expand Up @@ -74,6 +74,12 @@ client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'poke
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'chess').then(async invite => {
return message.channel.send(`${invite.code}`);
});
```
*Or Checkers in the Park*
```js
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'checkers').then(async invite => {
return message.channel.send(`${invite.code}`);
});
```
You can also choose the development version of chess, use: `chessDev`.

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "discord-together",
"version": "1.3.1",
"description": "Play games or watch YouTube videos together on Discord! More than 12 games available!",
"version": "1.3.2",
"description": "Play games or watch YouTube videos together on Discord! More than 13 games available!",
"main": "index.js",
"types": "./types/index.d.ts",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/DiscordTogether.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ 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
};

/**
Expand All @@ -34,7 +35,7 @@ class DiscordTogether {
*
* client.on('message', async message => {
* if (message.content === 'start') {
* client.discordTogether.createTogetherCode(message.member.voice.channelID, 'youtube').then(async invite => {
* client.discordTogether.createTogetherCode(message.member.voice.channelID, 'checkers').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, 'spellcast').then(async invite => { // message.member.voice.channelId for Discord.js v12
client.discordTogether.createTogetherCode(message.member.voice.channel.id, 'checkers').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 @@ -42,6 +42,7 @@ declare class DiscordTogether<T extends {
doodlecrew: string;
awkword: string;
spellcast: string;
checkers: string;
} & T;
/**
* Create a Youtube Together invite code (note: send the invite using markdown link)
Expand Down Expand Up @@ -70,6 +71,7 @@ declare class DiscordTogether<T extends {
doodlecrew: string;
awkword: string;
spellcast: string;
checkers: string;
} & T)): Promise<{
code: string;
}>;
Expand Down

0 comments on commit 844bc6d

Please sign in to comment.