Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박건희
/
emon_bot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박건희
2022-06-09 13:32:48 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
bb2af25ed1e0b49977fe424c67b41be82fffd863
bb2af25e
2 parents
32db7b4d
a9239008
Merge branch 'translator' into 'master'
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
Commands/Translate/button.js
Commands/Translate/translate.js
Commands/Translate/button.js
View file @
bb2af25
...
...
@@ -81,6 +81,29 @@ exports.run = async (client, msg, args, prefix) => {
trans_disabled_var
(
'en'
);
}
interaction
.
update
({
components
:
[
new
MessageActionRow
()
.
addComponents
(
new
MessageButton
()
.
setCustomId
(
'korean'
)
.
setLabel
(
label_var
.
ko
)
.
setStyle
(
'PRIMARY'
)
.
setDisabled
(
disabled_var
.
ko
),
new
MessageButton
()
.
setCustomId
(
'japanese'
)
.
setLabel
(
label_var
.
jp
)
.
setStyle
(
'PRIMARY'
)
.
setDisabled
(
disabled_var
.
jp
),
new
MessageButton
()
.
setCustomId
(
'english'
)
.
setLabel
(
label_var
.
en
)
.
setStyle
(
'PRIMARY'
)
.
setDisabled
(
disabled_var
.
en
),
)
]
})
});
};
...
...
Commands/Translate/translate.js
View file @
bb2af25
Please
register
or
login
to post a comment