Skip to content

Commit

Permalink
refactor: use native list markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
almostSouji committed Jul 11, 2023
1 parent 9de0578 commit 77da9f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/commands/userinfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export function applyMemberInfo(embed: APIEmbed, member: GuildMember): string[]
...(embed.fields ?? []),
{
name: "Member info",
value: memberInfo.map((part) => ` ${part}`).join("\n"),
value: memberInfo.map((part) => `- ${part}`).join("\n"),
},
];

Expand Down Expand Up @@ -177,7 +177,7 @@ export async function applyUserInfo(embed: APIEmbed, user: User): Promise<string
...(embed.fields ?? []),
{
name: "User info",
value: userInfo.map((info) => ` ${info}`).join("\n"),
value: userInfo.map((info) => `- ${info}`).join("\n"),
},
];

Expand Down Expand Up @@ -225,7 +225,7 @@ export async function applyApplicationInfo(embed: APIEmbed, user: User) {
...(embed.fields ?? []),
{
name: "App Info",
value: info.map((line) => ` ${line}`).join("\n"),
value: info.map((line) => `- ${line}`).join("\n"),
},
];
}
Expand Down Expand Up @@ -265,7 +265,7 @@ export default class extends Command<typeof UserInfoCommand> {
...(embed.fields ?? []),
{
name: "Notices",
value: notices.map((notice) => ` ${notice}`).join("\n"),
value: notices.map((notice) => `- ${notice}`).join("\n"),
},
];
}
Expand Down
10 changes: 5 additions & 5 deletions src/events/threadCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export default class implements Event {

await thread.send({
content: [
" What's your exact discord.js `npm list discord.js` and node `node -v` version?",
" Post the full error stack trace, not just the top part!",
" Show your code!",
" Explain what exactly your issue is.",
" Not a discord.js issue? Check out <#237743386864517122>.",
"- What's your exact discord.js `npm list discord.js` and node `node -v` version?",
"- Post the full error stack trace, not just the top part!",
"- Show your code!",
"- Explain what exactly your issue is.",
"- Not a discord.js issue? Check out <#237743386864517122>.",
].join("\n"),
});
} catch (error_) {
Expand Down

0 comments on commit 77da9f3

Please sign in to comment.