Skip to content

Commit

Permalink
fix: capitalization issue on import
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Jun 15, 2024
1 parent 27e4e8c commit 18b50b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/commands/admin/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const bulkAdd = {
const userDataEmbed = createUserEmbed(ul, char.avatar ?? member.avatarURL() ?? member.defaultAvatarURL);
userDataEmbed.addFields({
name: ul("common.charName"),
value: char.userName ?? "/",
value: title(char.userName) ?? "/",
inline: true,
});
userDataEmbed.addFields({
Expand Down Expand Up @@ -117,7 +117,7 @@ export const bulkAdd = {
.setTitle(ul("embed.template"))
.setColor("DarkerGrey");
templateEmbed.addFields({
name: ul("common.dice"),
name: title(ul("common.dice")),
value: `\`${guildTemplate.diceType}\``,
inline: true,
});
Expand Down Expand Up @@ -171,12 +171,14 @@ export const bulkAddTemplate = {
const header = [
"user",
"charName",
"avatar"
];
if (guildTemplate.statistics) {
header.push(...Object.keys(guildTemplate.statistics));
}
if (client.settings.has(interaction.guild.id, "privateChannel")) header.push("isPrivate");
header.push("dice");

//create CSV
const csvText = `\ufeff${header.join(";")}\n`;
const buffer = Buffer.from(csvText, "utf-8");
Expand Down

0 comments on commit 18b50b9

Please sign in to comment.