mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 10:19:11 +02:00
const
This commit is contained in:
@@ -25,7 +25,7 @@ module.exports = class SteamCardCommand extends Command {
|
|||||||
if (!msg.channel.permissionsFor(this.client.user).has('ATTACH_FILES'))
|
if (!msg.channel.permissionsFor(this.client.user).has('ATTACH_FILES'))
|
||||||
return msg.say('This Command requires the `Attach Files` Permission.');
|
return msg.say('This Command requires the `Attach Files` Permission.');
|
||||||
const { user } = args;
|
const { user } = args;
|
||||||
let username = msg.guild ? (msg.guild.member(user) ? msg.guild.member(user).displayName : user.username) : user.username;
|
const username = msg.guild ? (msg.guild.member(user) ? msg.guild.member(user).displayName : user.username) : user.username;
|
||||||
const avatarURL = user.avatarURL('png', 2048);
|
const avatarURL = user.avatarURL('png', 2048);
|
||||||
if (!avatarURL) return msg.say('This user has no avatar.');
|
if (!avatarURL) return msg.say('This user has no avatar.');
|
||||||
try {
|
try {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "19.1.0",
|
"version": "19.1.1",
|
||||||
"description": "A Discord Bot",
|
"description": "A Discord Bot",
|
||||||
"main": "shardingmanager.js",
|
"main": "shardingmanager.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user