From c034a1dabe01bb812f172fef7cb2776d25c4c154 Mon Sep 17 00:00:00 2001 From: MotiCAT Date: Wed, 21 Feb 2024 01:34:09 +0900 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Corrected=20banner=20displ?= =?UTF-8?q?ay=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/banner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/banner.ts b/src/commands/banner.ts index 6332eba..692bca5 100644 --- a/src/commands/banner.ts +++ b/src/commands/banner.ts @@ -5,7 +5,7 @@ export async function bannerCommand(message: Message) { const targetUser = await message.client.users.fetch(user.id, { force: true }); const banner = targetUser.bannerURL({ size: 1024 }); if (!banner) return message.reply('バナーが設定されていませんでした。'); - const embed = new EmbedBuilder().setTitle(`${user.username}のバナー`).setImage(banner).setColor('#0099ff'); + const embed = new EmbedBuilder().setTitle(`${user.displayName}のバナー`).setImage(banner).setColor('#0099ff'); message.reply({ embeds: [embed] }); return; }