Skip to content

Commit

Permalink
🐛 fix User command
Browse files Browse the repository at this point in the history
  • Loading branch information
MotiCAT committed Jan 9, 2024
1 parent 67fe3c5 commit 9b1336b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/interactions/user.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { ChatInputCommandInteraction, EmbedBuilder, GuildMember } from 'discord.js';

export async function userCommand(interaction: ChatInputCommandInteraction) {
const member =
(interaction.options.getMember('member') as GuildMember | undefined) ?? (interaction.member as GuildMember);
const member = (interaction.options.getMember('user') as GuildMember) ?? (interaction.member as GuildMember);
const createdDate = new Date(member.user.createdAt).toLocaleString('ja-JP', { timeZone: 'Asia/Tokyo' });
const nickname = member.nickname ?? 'なし';
if (!member.joinedAt) return;
Expand Down

0 comments on commit 9b1336b

Please sign in to comment.