forked from pinks/eris
fix errors
This commit is contained in:
parent
cd3b53018a
commit
2f059ceaff
|
@ -28,7 +28,7 @@ async function img2img(
|
||||||
includeRepliedTo: boolean,
|
includeRepliedTo: boolean,
|
||||||
state: QuestionState = {},
|
state: QuestionState = {},
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
if (!ctx.from) {
|
if (!ctx.from || !ctx.message) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ export async function txt2imgCommand(ctx: CommandContext<ErisContext>) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function txt2img(ctx: ErisContext, match: string, includeRepliedTo: boolean): Promise<void> {
|
async function txt2img(ctx: ErisContext, match: string, includeRepliedTo: boolean): Promise<void> {
|
||||||
if (!ctx.from) {
|
if (!ctx.from || !ctx.message) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue