File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
src/main/kotlin/me/jakejmattson/embedbot Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 4747| Delete | (Embed) | Delete the embed with this name. |
4848| Duplicate | Embed Name, (Embed) | Create a new embed from an existing embed. |
4949| Export | (Embed) | Export the currently loaded embed to JSON. |
50- | Import | Embed Name, JSON | Import a JSON String as an embed. |
51- | ImportFile | Embed Name, JSON | |
50+ | Import | Embed Name, JSON String | Import a JSON String as an embed. |
51+ | ImportFile | Embed Name, JSON File | Import a JSON File as an embed. |
5252| Load | Embed | Load the embed with this name into memory. |
5353| Send | (Channel), (shouldTrack) | Send the currently loaded embed. |
5454
Original file line number Diff line number Diff line change @@ -89,15 +89,15 @@ fun coreCommands(embedService: EmbedService) = commands {
8989
9090 command(" Import" ) {
9191 description = messages.descriptions.IMPORT
92- execute(WordArg (" Embed Name" ), SentenceArg (" JSON" )) {
92+ execute(WordArg (" Embed Name" ), SentenceArg (" JSON String " )) {
9393 val (name, json) = it.args
9494 it.importJson(name, json, embedService)
9595 }
9696 }
9797
9898 command(" ImportFile" ) {
99- description = " "
100- execute(WordArg (" Embed Name" ), FileArg (" JSON" )) {
99+ description = messages.descriptions. IMPORT_FILE
100+ execute(WordArg (" Embed Name" ), FileArg (" JSON File " )) {
101101 val (name, jsonFile) = it.args
102102 val json = jsonFile.readText()
103103
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ class Descriptions(
3131 val DUPLICATE : String = " Create a new embed from an existing embed." ,
3232 val EXPORT : String = " Export the currently loaded embed to JSON." ,
3333 val IMPORT : String = " Import a JSON String as an embed." ,
34+ val IMPORT_FILE : String = " Import a JSON File as an embed." ,
3435 val LOAD : String = " Load the embed with this name into memory." ,
3536 val SEND : String = " Send the currently loaded embed." ,
3637
You can’t perform that action at this time.
0 commit comments