Skip to content

Commit

Permalink
fix: leaderboard (unfinished)
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetfulskybro committed Dec 1, 2023
2 parents 5781e06 + 3ad0ded commit f0c804d
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/buttons/dare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const button: Button = {
.setColor("#0598F6")
.setFooter({
text: `Requested by ${interaction.user.username} | Type: Dare | ID: ${Random}`,
iconURL: interaction.user.avatarURL() || "",
iconURL: interaction.user.avatarURL() || undefined,
})
.setDescription(bold(truthordare[Random]));

Expand Down
2 changes: 1 addition & 1 deletion src/buttons/random.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const button: Button = {
.setColor("#0598F6")
.setFooter({
text: `Requested by ${interaction.user.username} | Type: Random | ID: ${Random}`,
iconURL: interaction.user.avatarURL() || "",
iconURL: interaction.user.avatarURL() || undefined,
})
.setDescription(bold(truthordare[Random]));

Expand Down
2 changes: 1 addition & 1 deletion src/buttons/truth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const button: Button = {
.setColor("#0598F6")
.setFooter({
text: `Requested by ${interaction.user.username} | Type: Truth | ID: ${Random}`,
iconURL: interaction.user.avatarURL() || "",
iconURL: interaction.user.avatarURL() || undefined,
})
.setDescription(bold(truthordare[Random]));

Expand Down
6 changes: 4 additions & 2 deletions src/commands/game/dare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ const command: ChatInputCommand = {
const dareembed = new EmbedBuilder()
.setColor("#0598F6")
.setFooter({
text: `Requested by ${interaction.user.username} | Type: Dare | ID: ${Random}`,
iconURL: interaction.user.avatarURL() || "",
text: `Requested by ${
interaction.user.username || "Anonymous"
} | Type: Dare | ID: ${Random}`,
iconURL: interaction.user.avatarURL() || undefined,
})
.setDescription(bold(truthordare[Random]));

Expand Down
4 changes: 2 additions & 2 deletions src/commands/game/higherlower.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const command: ChatInputCommand = {
)
.setFooter({
text: `Requested by ${interaction.user.username}`,
iconURL: interaction.user.avatarURL() || "",
iconURL: interaction.user.avatarURL() || undefined,
});

interaction.reply({ embeds: [initembed] }).then(async () => {
Expand Down Expand Up @@ -104,7 +104,7 @@ const command: ChatInputCommand = {
.setColor("White")
.setImage("attachment://game.png")
.setFooter({
iconURL: interaction.user.avatarURL() || "",
iconURL: interaction.user.avatarURL() || undefined,
text: `${interaction.user.tag} | Game ID: ${game.id}`,
})
.setTimestamp();
Expand Down
2 changes: 1 addition & 1 deletion src/commands/game/neverhaveiever.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const command: ChatInputCommand = {
.setColor("#0598F6")
.setFooter({
text: `Requested by ${interaction.user.username} | Type: NHIE | ID: ${Random}`,
iconURL: interaction.user.avatarURL() || "",
iconURL: interaction.user.avatarURL() || undefined,
})
.setDescription(bold(nererhaveIever[Random]));

Expand Down
2 changes: 1 addition & 1 deletion src/commands/game/random.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const command: ChatInputCommand = {
.setColor("#0598F6")
.setFooter({
text: `Requested by ${interaction.user.username} | Type: Random | ID: ${Random}`,
iconURL: interaction.user.avatarURL() || "",
iconURL: interaction.user.avatarURL() || undefined,
})
.setDescription(bold(truthordare[Random]));

Expand Down
2 changes: 1 addition & 1 deletion src/commands/game/truth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const command: ChatInputCommand = {
.setColor("#0598F6")
.setFooter({
text: `Requested by ${interaction.user.username} | Type: Truth | ID: ${Random}`,
iconURL: interaction.user.avatarURL() || "",
iconURL: interaction.user.avatarURL() || undefined,
})
.setDescription(bold(truthordare[Random]));

Expand Down
2 changes: 1 addition & 1 deletion src/commands/game/wwyd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const command: ChatInputCommand = {
.setColor("#0598F6")
.setFooter({
text: `Requested by ${interaction.user.username} | Type: WWYD | ID: ${Random}`,
iconURL: interaction.user.avatarURL() || "",
iconURL: interaction.user.avatarURL() || undefined,
})
.setDescription(bold(whatwouldyoudo[Random]));

Expand Down

0 comments on commit f0c804d

Please sign in to comment.