Skip to content

Commit ae41c56

Browse files
Merge formatting
Merge formatting into main
2 parents b260d48 + d4cab37 commit ae41c56

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

src/buttons/gamesActivities/higher.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -160,26 +160,26 @@ const button: Button = {
160160
})
161161
.setTimestamp();
162162

163-
const mainRow = new ActionRowBuilder<MessageActionRowComponentBuilder>();
164-
if (Math.round(Math.random() * 15) < 3) {
165-
mainRow.addComponents([
166-
new ButtonBuilder()
167-
.setLabel("Invite")
168-
.setStyle(5)
169-
.setEmoji("1009964111045607525")
170-
.setURL(
171-
"https://discord.com/oauth2/authorize?client_id=981649513427111957&permissions=275415247936&scope=bot%20applications.commands",
172-
),
173-
]);
174-
}
163+
const mainRow = new ActionRowBuilder<MessageActionRowComponentBuilder>();
164+
if (Math.round(Math.random() * 15) < 3) {
175165
mainRow.addComponents([
176166
new ButtonBuilder()
177-
.setLabel("Try Again")
178-
.setStyle(1)
179-
.setEmoji("1073954835533156402")
180-
.setCustomId(`higherlower`)
181-
.setDisabled(guildDb?.replay != null ? !guildDb.replay : false),
167+
.setLabel("Invite")
168+
.setStyle(5)
169+
.setEmoji("1009964111045607525")
170+
.setURL(
171+
"https://discord.com/oauth2/authorize?client_id=981649513427111957&permissions=275415247936&scope=bot%20applications.commands",
172+
),
182173
]);
174+
}
175+
mainRow.addComponents([
176+
new ButtonBuilder()
177+
.setLabel("Try Again")
178+
.setStyle(1)
179+
.setEmoji("1073954835533156402")
180+
.setCustomId(`higherlower`)
181+
.setDisabled(guildDb?.replay != null ? !guildDb.replay : false),
182+
]);
183183

184184
const gameImage = new LOSE();
185185
gameImage.setGame(game);

src/buttons/gamesActivities/lower.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -160,26 +160,26 @@ const button: Button = {
160160
})
161161
.setTimestamp();
162162

163-
const mainRow = new ActionRowBuilder<MessageActionRowComponentBuilder>();
164-
if (Math.round(Math.random() * 15) < 3) {
165-
mainRow.addComponents([
166-
new ButtonBuilder()
167-
.setLabel("Invite")
168-
.setStyle(5)
169-
.setEmoji("1009964111045607525")
170-
.setURL(
171-
"https://discord.com/oauth2/authorize?client_id=981649513427111957&permissions=275415247936&scope=bot%20applications.commands",
172-
),
173-
]);
174-
}
163+
const mainRow = new ActionRowBuilder<MessageActionRowComponentBuilder>();
164+
if (Math.round(Math.random() * 15) < 3) {
175165
mainRow.addComponents([
176166
new ButtonBuilder()
177-
.setLabel("Try Again")
178-
.setStyle(1)
179-
.setEmoji("1073954835533156402")
180-
.setCustomId(`higherlower`)
181-
.setDisabled(guildDb?.replay != null ? !guildDb.replay : false),
167+
.setLabel("Invite")
168+
.setStyle(5)
169+
.setEmoji("1009964111045607525")
170+
.setURL(
171+
"https://discord.com/oauth2/authorize?client_id=981649513427111957&permissions=275415247936&scope=bot%20applications.commands",
172+
),
182173
]);
174+
}
175+
mainRow.addComponents([
176+
new ButtonBuilder()
177+
.setLabel("Try Again")
178+
.setStyle(1)
179+
.setEmoji("1073954835533156402")
180+
.setCustomId(`higherlower`)
181+
.setDisabled(guildDb?.replay != null ? !guildDb.replay : false),
182+
]);
183183

184184
const gameImage = new LOSE();
185185
gameImage.setGame(game);

0 commit comments

Comments
 (0)