Showing
2 changed files
with
24 additions
and
1 deletions
... | @@ -80,6 +80,29 @@ exports.run = async (client, msg, args, prefix) => { | ... | @@ -80,6 +80,29 @@ exports.run = async (client, msg, args, prefix) => { |
80 | global.trans_var ='en'; | 80 | global.trans_var ='en'; |
81 | trans_disabled_var('en'); | 81 | trans_disabled_var('en'); |
82 | } | 82 | } |
83 | + | ||
84 | + interaction.update({ | ||
85 | + components: [ | ||
86 | + new MessageActionRow() | ||
87 | + .addComponents( | ||
88 | + new MessageButton() | ||
89 | + .setCustomId('korean') | ||
90 | + .setLabel(label_var.ko) | ||
91 | + .setStyle('PRIMARY') | ||
92 | + .setDisabled(disabled_var.ko), | ||
93 | + new MessageButton() | ||
94 | + .setCustomId('japanese') | ||
95 | + .setLabel(label_var.jp) | ||
96 | + .setStyle('PRIMARY') | ||
97 | + .setDisabled(disabled_var.jp), | ||
98 | + new MessageButton() | ||
99 | + .setCustomId('english') | ||
100 | + .setLabel(label_var.en) | ||
101 | + .setStyle('PRIMARY') | ||
102 | + .setDisabled(disabled_var.en), | ||
103 | + ) | ||
104 | + ] | ||
105 | + }) | ||
83 | 106 | ||
84 | }); | 107 | }); |
85 | }; | 108 | }; | ... | ... |
... | @@ -63,4 +63,4 @@ exports.config = { | ... | @@ -63,4 +63,4 @@ exports.config = { |
63 | category: ['Translate'], | 63 | category: ['Translate'], |
64 | des: ['채팅 내용에 대한 검색결과를 보여줍니다.'], | 64 | des: ['채팅 내용에 대한 검색결과를 보여줍니다.'], |
65 | use: ['!번역 <채팅>'] | 65 | use: ['!번역 <채팅>'] |
66 | -}; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
66 | +}; | ... | ... |
-
Please register or login to post a comment