Don't crash when sending a log message that is too long
This commit is contained in:
parent
be1c327093
commit
32856329b5
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,8 @@ export class LogsPlugin extends Plugin {
|
|||
(opts.exclude && !opts.exclude.includes(typeStr))
|
||||
) {
|
||||
const message = this.getLogMessage(type, data);
|
||||
if (message) await channel.createMessage(message);
|
||||
// TODO: Split log messages that are too long
|
||||
if (message) await channel.createMessage(message).catch(() => {});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue