-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4231a32
commit 75087fb
Showing
5 changed files
with
44 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const { EmbedBuilder, SlashCommandBuilder } = require("discord.js"); | ||
const ERROR = require("../ERROR"); | ||
|
||
module.exports = { | ||
...new SlashCommandBuilder() | ||
.setName("이미지") | ||
.setDescription("명령어에 이미지를 넣을 수 있는지 테스트하는 명령어입니다.") | ||
.addAttachmentOption(option => option.setName("이미지").setDescription("원하시는 이미지를 넣어주세요.").setRequired(true)), | ||
|
||
run: async (client, interaction) => { | ||
const image = interaction.options.getAttachment("이미지"); | ||
|
||
const embed = new EmbedBuilder() | ||
.setColor("Random") | ||
.setImage(`${image.url}`) | ||
.setTitle("첨부하신 이미지, 이거 맞죠?") | ||
.setTimestamp() | ||
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` }); | ||
interaction.followUp({ embeds: [embed] }); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters