Skip to content

Commit

Permalink
use display names instead of usernames where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Oct 18, 2023
1 parent 6111524 commit 6d468bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/commands/bot/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const command: SlashCommand = {
if (!interaction.hasPermission("dev")) return;

const activity = interaction.options.getString("activity", true);
const presence = interaction.options.getString("presence", true);
const presence = interaction.options.getString("presence", true) as PresenceStatusData;
const message = interaction.options.getString("message", true);

interaction.client.user.setPresence({
Expand All @@ -56,7 +56,7 @@ export const command: SlashCommand = {
type: ActivityType[activity],
},
],
status: presence as PresenceStatusData,
status: presence,
});

await interaction.reply({
Expand Down
4 changes: 2 additions & 2 deletions src/commands/faithful/about.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const command: SlashCommand = {
).data;
} catch {
const finalEmbed = new EmbedBuilder()
.setTitle(`${user.username} has no contributions!`)
.setTitle(`${user.displayName} has no contributions!`)
.setDescription(
"No database profile was found for this user. If this data looks incorrect, register at https://webapp.faithfulpack.net.",
);
Expand Down Expand Up @@ -101,7 +101,7 @@ export const command: SlashCommand = {

const finalEmbed = new EmbedBuilder()
.setTitle(
`${user.username} has ${finalData.length} ${
`${user.displayName} has ${finalData.length} ${
finalData.length == 1 ? "contribution" : "contributions"
}!`,
)
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/functions/feedback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default async function sendFeedback(
owner: "Faithful-Resource-Pack",
repo: "CompliBot",
title,
body: `*Issue originally created by \`${interaction.user.username}\` on Discord*\n\n${description}`,
body: `*Issue originally created by \`${interaction.user.displayName}\` on Discord*\n\n${description}`,
});
} catch (err) {
interaction.followUp({
Expand Down

0 comments on commit 6d468bc

Please sign in to comment.