Display users better
This commit is contained in:
parent
b25beeee98
commit
49a7582883
|
@ -99,7 +99,7 @@ export async function execute(interaction: CommandInteraction) {
|
|||
.addFields(
|
||||
{
|
||||
name: "Author",
|
||||
value: interaction.user.displayName
|
||||
value: `<@${interaction.user.id}>`
|
||||
},
|
||||
{
|
||||
name: "Author ID",
|
||||
|
|
|
@ -22,7 +22,6 @@ import {
|
|||
SlashCommandBuilder
|
||||
} from "discord.js";
|
||||
import { dt } from "../main";
|
||||
import { BotClient } from "../bot";
|
||||
|
||||
export const data = new SlashCommandBuilder()
|
||||
.setName("confessbanlist")
|
||||
|
@ -37,9 +36,7 @@ export async function execute(interaction: CommandInteraction) {
|
|||
: "There are no banned members.";
|
||||
|
||||
for (const member of bannedMembers) {
|
||||
const identifiedMember = await BotClient.users.fetch(member.user);
|
||||
|
||||
content += `\n${identifiedMember.displayName} | \`${member.confessionId}\``;
|
||||
content += `\n<@${member.user} | \`${member.confessionId}\``;
|
||||
}
|
||||
|
||||
return interaction.reply({
|
||||
|
|
|
@ -23,8 +23,6 @@ import {
|
|||
ComponentType,
|
||||
EmbedBuilder,
|
||||
Events,
|
||||
Interaction,
|
||||
ModalSubmitInteraction,
|
||||
TextChannel
|
||||
} from "discord.js";
|
||||
import { BotClient, BOT_TOKEN, deployCommands } from "./bot";
|
||||
|
@ -133,7 +131,7 @@ BotClient.on(Events.InteractionCreate, async interaction => {
|
|||
.addFields(
|
||||
{
|
||||
name: "Author",
|
||||
value: interaction.user.displayName
|
||||
value: `<@${interaction.user.id}>`
|
||||
},
|
||||
{
|
||||
name: "Author ID",
|
||||
|
|
Loading…
Reference in a new issue