Add ability to add a moon to your count #477
3 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@ export default async function List(interaction: ButtonInteraction) {
|
||||||
|
|
||||||
const totalPages = Math.ceil(moons[1] / pageLength);
|
const totalPages = Math.ceil(moons[1] / pageLength);
|
||||||
|
|
||||||
const description = moons[0].flatMap(x => `${x.MoonNumber}. ${x.Description.slice(0, 15)}`);
|
const description = moons[0].flatMap(x => `**${x.MoonNumber} -** ${x.Description.slice(0, 15)}`);
|
||||||
|
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setTitle(`${member?.user.username}'s Moons`)
|
.setTitle(`${member?.user.username}'s Moons`)
|
||||||
|
|
|
@ -19,7 +19,7 @@ export default async function AddMoon(interaction: CommandInteraction) {
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setTitle(`${interaction.user.globalName} Got A Moon!`)
|
.setTitle(`${interaction.user.globalName} Got A Moon!`)
|
||||||
.setColor(EmbedColours.Moon)
|
.setColor(EmbedColours.Moon)
|
||||||
.setDescription(`${moon.MoonNumber}. ${moon.Description}`)
|
.setDescription(`**${moon.MoonNumber} -** ${moon.Description}`)
|
||||||
.setThumbnail("https://cdn.discordapp.com/emojis/374131312182689793.webp?size=96&quality=lossless");
|
.setThumbnail("https://cdn.discordapp.com/emojis/374131312182689793.webp?size=96&quality=lossless");
|
||||||
|
|
||||||
await interaction.reply({ embeds: [ embed ] });
|
await interaction.reply({ embeds: [ embed ] });
|
||||||
|
|
|
@ -17,7 +17,7 @@ export default async function ListMoons(interaction: CommandInteraction) {
|
||||||
|
|
||||||
const totalPages = Math.ceil(moons[1] / pageLength);
|
const totalPages = Math.ceil(moons[1] / pageLength);
|
||||||
|
|
||||||
const description = moons[0].flatMap(x => `${x.MoonNumber}. ${x.Description.slice(0, 15)}`);
|
const description = moons[0].flatMap(x => `**${x.MoonNumber} -** ${x.Description.slice(0, 15)}`);
|
||||||
|
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setTitle(`${user.username}'s Moons`)
|
.setTitle(`${user.username}'s Moons`)
|
||||||
|
|
Loading…
Reference in a new issue