mirror of https://github.com/thaldrin/thaldrin.git
fix bug command
This commit is contained in:
parent
0903e72c57
commit
7114c52ac0
|
@ -2,7 +2,7 @@ import Command from '../../handler/structures/Command';
|
||||||
import { Context } from '../../utils/types';
|
import { Context } from '../../utils/types';
|
||||||
import SendWS from "../../utils/webhook";
|
import SendWS from "../../utils/webhook";
|
||||||
import lingua from '../../utils/lingua';
|
import lingua from '../../utils/lingua';
|
||||||
import { suggest } from '../../utils/trello';
|
import { bug } from '../../utils/trello';
|
||||||
import replace from '../../utils/replace';
|
import replace from '../../utils/replace';
|
||||||
export = class Suggestion extends Command {
|
export = class Suggestion extends Command {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
@ -21,7 +21,7 @@ export = class Suggestion extends Command {
|
||||||
let author = `${ctx.author.tag} (${ctx.author.id})`
|
let author = `${ctx.author.tag} (${ctx.author.id})`
|
||||||
let guild = `${ctx.guild?.name} (${ctx.guild?.id})`
|
let guild = `${ctx.guild?.name} (${ctx.guild?.id})`
|
||||||
|
|
||||||
await suggest({ title, desc, author, guild })
|
await bug({ title, desc, author, guild })
|
||||||
if (ctx.config?.webhook?.bug) await SendWS(ctx.config.webhook.bug, { title, desc, ctx })
|
if (ctx.config?.webhook?.bug) await SendWS(ctx.config.webhook.bug, { title, desc, ctx })
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
|
Loading…
Reference in New Issue