Skip to content

Commit

Permalink
Update view command (#572)
Browse files Browse the repository at this point in the history
ユーザーメンションになるように変更
  • Loading branch information
Mogyuchi authored Jun 8, 2023
1 parent d38dd83 commit 982d2d2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/commands/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,14 @@ export class ViewCommand extends Command {
user ? user.id : interaction.member.id,
)

const userNameText = user
? `${user.username}#${user.discriminator}`
: '現在'
const userNameText = user ? user : '現在'

return interaction.reply({
embeds: [
{
color: 0x00ff00,
title: `${userNameText}の声の設定`,
description:
`**${userNameText}の声の設定**` +
'```\n' +
objToList(userSetting).split('\n').slice(1).join('\n') +
'\n```',
Expand Down

0 comments on commit 982d2d2

Please sign in to comment.