feat: update !see output

This commit is contained in:
2024-08-08 14:33:27 +03:00
parent dbfed5070e
commit 43d7b9b706

View File

@@ -1,14 +1,22 @@
import { command } from '@/core/commands'
import Discord from 'discord.js'
export default command({
command: 'see',
aliases: ['s'],
description: 'See your username and ID',
examples: ['`!s`'],
async execute(message: Discord.Message): Promise<Discord.Message> {
async execute(message) {
return message.author.send(
`Server: ${message.guild!.name}\nYour username: ${message.author.username}\nYour ID: ${message.author.id}`,
[
'**Server info:**',
`ID: ${message.guild!.id}`,
`Name: ${message.guild!.name}`,
'',
'**Your info:**',
`ID: ${message.author.id}`,
`Username: ${message.author.username}`,
`Nickname: ${message.member?.nickname ?? 'Unknown'}`,
].join('\n'),
)
},
})