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