Skip to content

Commit

Permalink
update infoembed and rule stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Jan 1, 2025
1 parent 6e54f61 commit 4d030b4
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 27 deletions.
4 changes: 2 additions & 2 deletions json/rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"description": "A much more in-depth version of our rules, punishment appeal information, and our thought process into giving punishments can be found here: https://docs.faithfulpack.net/pages/manuals/expanded-server-rules"
},
"changes": {
"title": "Last Update: 2 July 2024",
"description": "Clarify that monetary transactions are banned in rule 9 and tweak some wording.",
"title": "Last Update: 1st January 2025",
"description": "Changed the embed logos.",
"footer": "The rules are subject to change at any time for any reason.",
"enabled": true
}
Expand Down
4 changes: 2 additions & 2 deletions src/commands/info/media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const command: SlashCommand = {
.setTitle(mediaInfo.title)
.setDescription(mediaInfo.description)
.setColor(colors[key] ?? colors.brand)
.setThumbnail(images[key == "default" ? "plain" : key]), // "default" is already used
.setThumbnail(images[key == "default" ? "main" : key]), // "default" is already used
),
});
}
Expand All @@ -51,7 +51,7 @@ export const command: SlashCommand = {
.setTitle(media[key].title)
.setDescription(media[key].description)
.setColor(colors[key] ?? colors.brand)
.setThumbnail(images[key == "default" ? "plain" : key]);
.setThumbnail(images[key == "default" ? "main" : key]);

interaction
.reply({ embeds: [embed], fetchReply: true })
Expand Down
4 changes: 2 additions & 2 deletions src/commands/info/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export const command: SlashCommand = {

await interaction.complete();

const thumbnail =
interaction.guildId == discord.guilds.classic_faithful.id ? images.cf_plain : images.plain;
const thumbnail: string =
interaction.guildId == discord.guilds.classic_faithful.id ? images.cf_main : images.main;

if (choice == "all")
await interaction.channel.send({
Expand Down
43 changes: 22 additions & 21 deletions src/helpers/utility/infoembed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,46 +42,47 @@ export const media: Record<string, { title: string, description: string }> = {
`,
},

classic_faithful_32x: {
title: "Classic Faithful 32x Jappa:",
classic_faithful_32x_progart: {
title: "Classic Faithful 32x:",
description: `
[${parseID(emojis.faithful_logo)} Website](https://faithfulpack.net/classicfaithful/32x-jappa)
[${parseID(emojis.faithful_logo)} Website](https://faithfulpack.net/classicfaithful/32x-programmer-art)
[${parseID(emojis.curseforge)} CurseForge](https://curseforge.com/minecraft/texture-packs/classic-faithful-32x-jappa)
[${parseID(emojis.curseforge)} CurseForge](https://curseforge.com/minecraft/texture-packs/classic-faithful-32x-pa)
[${parseID(emojis.modrinth)} Modrinth](https://modrinth.com/resourcepack/classic-faithful-32x-jappa)
[${parseID(emojis.pmc)} Planet Minecraft](https://planetminecraft.com/texture-pack/classic-faithful-32x-pa)
[${parseID(emojis.pmc)} Planet Minecraft](https://planetminecraft.com/texture-pack/classic-faithful-32x)
[${parseID(emojis.modrinth)} Modrinth](https://modrinth.com/resourcepack/classic-faithful-32x-programmer-art)
[${parseID(emojis.github)} Java Edition GitHub](https://github.com/classicfaithful/32x-jappa)
[${parseID(emojis.github)} Java Edition GitHub](https://github.com/classicfaithful/32x-programmer-art)
[${parseID(emojis.github)} Bedrock Edition GitHub](https://github.com/classicfaithful/32x-jappa-bedrock)
[${parseID(emojis.github)} Bedrock Edition GitHub](https://github.com/classicfaithful/32x-programmer-art-bedrock)
[${parseID(emojis.github)} Add-ons GitHub](https://github.com/classicfaithful/32x-jappa-add-ons)
[${parseID(emojis.github)} Add-ons GitHub](https://github.com/classicfaithful/32x-programmer-art-add-ons)
`,
},

classic_faithful_32x_progart: {
title: "Classic Faithful 32x PA:",

classic_faithful_32x: {
title: "Classic Faithful 32x Jappa:",
description: `
[${parseID(emojis.faithful_logo)} Website](https://faithfulpack.net/classicfaithful/32x-programmer-art)
[${parseID(emojis.faithful_logo)} Website](https://faithfulpack.net/classicfaithful/32x-jappa)
[${parseID(emojis.curseforge)} CurseForge](https://curseforge.com/minecraft/texture-packs/classic-faithful-32x-pa)
[${parseID(emojis.curseforge)} CurseForge](https://curseforge.com/minecraft/texture-packs/classic-faithful-32x-jappa)
[${parseID(emojis.pmc)} Planet Minecraft](https://planetminecraft.com/texture-pack/classic-faithful-32x-pa)
[${parseID(emojis.modrinth)} Modrinth](https://modrinth.com/resourcepack/classic-faithful-32x-jappa)
[${parseID(emojis.modrinth)} Modrinth](https://modrinth.com/resourcepack/classic-faithful-32x-programmer-art)
[${parseID(emojis.pmc)} Planet Minecraft](https://planetminecraft.com/texture-pack/classic-faithful-32x)
[${parseID(emojis.github)} Java Edition GitHub](https://github.com/classicfaithful/32x-programmer-art)
[${parseID(emojis.github)} Java Edition GitHub](https://github.com/classicfaithful/32x-jappa)
[${parseID(emojis.github)} Bedrock Edition GitHub](https://github.com/classicfaithful/32x-programmer-art-bedrock)
[${parseID(emojis.github)} Bedrock Edition GitHub](https://github.com/classicfaithful/32x-jappa-bedrock)
[${parseID(emojis.github)} Add-ons GitHub](https://github.com/classicfaithful/32x-programmer-art-add-ons)
[${parseID(emojis.github)} Add-ons GitHub](https://github.com/classicfaithful/32x-jappa-add-ons)
`,
},

classic_faithful_64x: {
title: "Classic Faithful 64x:",
title: "Classic Faithful 64x Jappa:",
description: `
[${parseID(emojis.faithful_logo)} Website](https://faithfulpack.net/classicfaithful/64x-jappa)
Expand All @@ -101,8 +102,8 @@ export const media: Record<string, { title: string, description: string }> = {
### General:
[Website](https://faithfulpack.net/) • [Docs](https://docs.faithfulpack.net/) • [Web App](https://webapp.faithfulpack.net) • [License](https://faithfulpack.net/license) • [Translate](https://translate.faithfulpack.net/)
### Listings:
[CurseForge](https://curseforge.com/members/faithful_resource_pack/projects) • [Modrinth](https://modrinth.com/user/faithful-resource-pack) • [Planet Minecraft](https://planetminecraft.com/member/faithful_resource_pack/) • [MCPEDL](https://mcpedl.com/user/faithful-resource-pack/) • [Minecraft Forum](https://www.minecraftforum.net/members/faithful_resource_pack)
[Website](https://faithfulpack.net/news) • [CurseForge](https://curseforge.com/members/faithful_resource_pack/projects) • [Modrinth](https://modrinth.com/user/faithful-resource-pack) • [Planet Minecraft](https://planetminecraft.com/member/faithful_resource_pack/) • [MCPEDL](https://mcpedl.com/user/faithful-resource-pack/)
### Media:
[News](https://faithfulpack.net/news) • [Twitter](https://twitter.com/faithfulpack/) • [Reddit](https://reddit.com/r/faithfulpack/) • [Main GitHub](https://github.com/faithful-resource-pack/) • [Classic Faithful GitHub](https://github.com/classicfaithful/)`,
[Twitter](https://twitter.com/faithfulpack/) • [Bluesky](https://bsky.app/profile/faithfulpack.net) • [Reddit](https://reddit.com/r/faithfulpack/) • [Main GitHub](https://github.com/faithful-resource-pack/) • [Classic Faithful GitHub](https://github.com/classicfaithful/)`,
},
};

0 comments on commit 4d030b4

Please sign in to comment.