Add ability to add a moon to your count #477

Merged
Vylpes merged 7 commits from feature/196-add-moons into develop 2024-09-21 16:12:19 +01:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit 3c45410932 - Show all commits

View file

@ -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`)

View file

@ -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 ] });

View file

@ -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`)