Skip to content

Commit

Permalink
🎉 Version 4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aniket091 authored Feb 12, 2023
1 parent fed22ef commit 502b42f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@

## **⚙️ Installation**
**For discord.js v13 use `npm i discord-gamecord@v3-lts`**
```
npm i discord-gamecord
npm i discord-gamecord@latest
```


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-gamecord",
"version": "4.1.0",
"version": "4.2.0",
"description": "Discord Gamecord is a powerful npm package with a collection of minigames for your discord bot",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/MatchPairs.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ module.exports = class MatchPairs extends events {
for (let y = 0; y < this.length; y++) {
const row = new ActionRowBuilder();
for (let x = 0; x < this.length; x++) {
const btn = new ButtonBuilder().setStyle('SECONDARY').setLabel(' ').setCustomId('matchpairs_' + x + '_' + y);
const btn = new ButtonBuilder().setStyle('SECONDARY').setLabel('\u200b').setCustomId('matchpairs_' + x + '_' + y);
row.addComponents(btn);
}
components.push(row);
Expand Down
2 changes: 1 addition & 1 deletion src/Minesweeper.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ module.exports = class Minesweeper extends events {
.setCustomId('minesweeper_' + x + '_' + y)

if (displayMine || isNumber) btn.setEmoji(displayMine ? (found ? this.emojis.flag : this.emojis.mine) : isNumber);
else btn.setLabel(' ');
else btn.setLabel('\u200b');
row.addComponents(btn);
}
components.push(row);
Expand Down
2 changes: 1 addition & 1 deletion utils/approve.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module.exports = class Approve extends events {
const row = new ActionRowBuilder().addComponents(btn1, btn2);

const content = this.options.mentionUser ? '<@!'+this.opponent.id+'>' : null;
const msg = await this.sendMessage({ content, embeds: [embed], components: [row] });
const msg = await this.sendMessage({ content, embeds: [embed], components: [row], allowedMentions: { parse: ['users'] } });
const collector = msg.createMessageComponentCollector({ time: this.options.reqTimeoutTime });


Expand Down

0 comments on commit 502b42f

Please sign in to comment.