Showing
1 changed file
with
6 additions
and
3 deletions
| 1 | const { SlashCommandBuilder } = require('@discordjs/builders'); | 1 | const { SlashCommandBuilder } = require('@discordjs/builders'); |
| 2 | -const open = require('open'); | 2 | +const { MessageEmbed } = require('discord.js'); |
| 3 | const axios = require("axios"); | 3 | const axios = require("axios"); |
| 4 | const cheerio = require("cheerio"); | 4 | const cheerio = require("cheerio"); |
| 5 | 5 | ||
| ... | @@ -27,8 +27,11 @@ module.exports = { | ... | @@ -27,8 +27,11 @@ module.exports = { |
| 27 | interaction.reply({content: "`"+interaction.options.getString("닉네임")+"`"+"이라는 캐릭터는 없습니다", allowedMentions: {repliedUser: false}}); | 27 | interaction.reply({content: "`"+interaction.options.getString("닉네임")+"`"+"이라는 캐릭터는 없습니다", allowedMentions: {repliedUser: false}}); |
| 28 | return; | 28 | return; |
| 29 | } | 29 | } |
| 30 | - open(`https://loawa.com/char/${interaction.options.getString("닉네임")}`); | 30 | + const embed = new MessageEmbed() |
| 31 | - interaction.reply({content: `${interaction.options.getString("닉네임")}의 로아와 정보로 이동합니다.`, allowedMentions: {repliedUser: false}}); | 31 | + .setColor('#6FF3E0') |
| 32 | + .setTitle("로아와") | ||
| 33 | + .setDescription(`[클릭하여 ${interaction.options.getString("닉네임")}의 로아와 정보로 이동합니다.](https://loawa.com/char/${interaction.options.getString("닉네임")})`); | ||
| 34 | + interaction.reply({embeds: [embed], allowedMentions: {repliedUser: false}}); | ||
| 32 | }); | 35 | }); |
| 33 | 36 | ||
| 34 | }, | 37 | }, | ... | ... |
-
Please register or login to post a comment