Skip to content

Commit

Permalink
hotfix: Citizen card bug
Browse files Browse the repository at this point in the history
  • Loading branch information
leomotors committed Jun 27, 2022
1 parent ae4c429 commit 4de7088
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 5 additions & 3 deletions src/commands/salim.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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: "วันเกิด",
Expand Down

0 comments on commit 4de7088

Please sign in to comment.