From 4de7088c299c0c65afc6793d7dfa372338c23918 Mon Sep 17 00:00:00 2001 From: Nutthapat Pongtanyavichai <59821765+Leomotors@users.noreply.github.com> Date: Mon, 27 Jun 2022 19:15:06 +0700 Subject: [PATCH] hotfix: Citizen card bug --- package.json | 2 +- src/commands/salim.ts | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index c3e6277..50a59a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "salim-bot", - "version": "4.1.1190", + "version": "4.1.1191", "description": "This bot is Salim. Whenever you trigger it, It become mad.", "type": "module", "main": "dist/bot.js", diff --git a/src/commands/salim.ts b/src/commands/salim.ts index d23fdc3..95f7fea 100644 --- a/src/commands/salim.ts +++ b/src/commands/salim.ts @@ -1,7 +1,6 @@ import { CocoaVersion } from "cocoa-discord-utils/meta"; import { CogSlashClass, SlashCommand } from "cocoa-discord-utils/slash/class"; import { - Author, AutoBuilder, CocoaOption, Ephemeral, @@ -199,11 +198,14 @@ export default class Salim extends CogSlashClass { .use(ctx) .setTitle("บัตรประจำตัวประชาชนชาวไทย") .setDescription("บัตรที่แสดงสถานะพลเมืองของคุณ รวมถึงความประพฤติ") - .setThumbnail(Author(ctx).iconURL) + .setThumbnail( + user.avatarURL() ?? + "https://cdn.discordapp.com/embed/avatars/1.png" + ) .addInlineFields( { name: "ชื่อ", - value: `<@${ctx.user.id}>`, + value: `<@${user.id}>`, }, { name: "วันเกิด",