Skip to content

Commit

Permalink
feat: capitalize first letters of tag name when viewing
Browse files Browse the repository at this point in the history
  • Loading branch information
R-unic committed Apr 1, 2024
1 parent e832f61 commit 32150e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/info/tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Category, PermissionGuard } from "@discordx/utilities";
import { ApplicationCommandOptionType, type CommandInteraction } from "discord.js";

import { GuildData } from "../../data/guild.js";
import { RequirePermissions } from "../../utility.js";
import { capitalize, RequirePermissions } from "../../utility.js";
import Embed from "../../embed-presets.js";

@Discord()
Expand Down Expand Up @@ -86,7 +86,7 @@ export class Tags {
});

await command.reply({
embeds: [Embed.common(tag.name).setDescription(tag.content)]
embeds: [Embed.common(capitalize(tag.name)).setDescription(tag.content)]
});
}

Expand Down

0 comments on commit 32150e4

Please sign in to comment.