3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 17:45:03 +00:00

Rename use_inline_reply to inline (#278)

This commit is contained in:
Almeida 2021-09-05 15:38:03 +01:00 committed by GitHub
parent 6f00484a75
commit 416e53cbc8

View file

@ -24,7 +24,7 @@ export const ReplyAction = automodAction({
t.type({ t.type({
text: tMessageContent, text: tMessageContent,
auto_delete: tNullable(t.union([tDelayString, t.number])), auto_delete: tNullable(t.union([tDelayString, t.number])),
use_inline_reply: tNullable(t.boolean), inline: tNullable(t.boolean),
}), }),
]), ]),
@ -102,7 +102,7 @@ export const ReplyAction = automodAction({
}, },
}; };
if (typeof actionConfig !== "string" && actionConfig.use_inline_reply) { if (typeof actionConfig !== "string" && actionConfig.inline) {
messageOpts.reply = { messageOpts.reply = {
failIfNotExists: false, failIfNotExists: false,
messageReference: _contexts[0].message!.id, messageReference: _contexts[0].message!.id,