Skip to content

Commit 4d8e171

Browse files
fix: Register /fr command on start (#31)
* mod.rs fixed * .... mod.rs fixed * .changes/fr-command.md * Update .changes/fr-command.md Co-authored-by: Marek Vospel <73162071+marekvospel@users.noreply.github.com> * Is this descriptive enough? --------- Co-authored-by: Marek Vospel <73162071+marekvospel@users.noreply.github.com>
1 parent 4c56d41 commit 4d8e171

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

.changes/fr-command.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
workshop-bot: patch
3+
---
4+
5+
Register /fr command on start

locale/cs.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"description": "Polib někoho posláním gifu"
1616
},
1717
"fr": {
18-
"description": ":regional_indicator_f: :regional_indicator_r:"
18+
"description": "Pošle fr gif",
19+
"message": ":regional_indicator_f: :regional_indicator_r:"
1920
},
2021
"amimir": {
2122
"description": "trnka",

locale/en.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"description": "Send a slap gif"
3131
},
3232
"fr": {
33-
"description": ":regional_indicator_f: :regional_indicator_r:"
33+
"description": "Sends a fr gif",
34+
"message": ":regional_indicator_f: :regional_indicator_r:"
3435
},
3536
"punch": {
3637
"description": "Send a punch gif"

src/commands/mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ pub(crate) async fn register_commands(ctx: &Context) {
5353
})
5454
.await,
5555
);
56+
57+
results.push(
58+
Command::create_global_application_command(&ctx.http, |command| {
59+
fr::register(command)
60+
})
61+
.await,
62+
);
5663

5764
results.push(
5865
Command::create_global_application_command(&ctx.http, |command| {

0 commit comments

Comments
 (0)