mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-12 12:55:02 +00:00
fix: fix error handling in InternalPoster.sendMessage direct sends
This commit is contained in:
parent
4179bc4ee1
commit
fe63ec9d77
3 changed files with 21 additions and 13 deletions
|
@ -24,7 +24,7 @@ export async function postToCaseLogChannel(
|
|||
// This doesn't use `!isText() || isThread()` because TypeScript had some issues inferring types from it
|
||||
if (!caseLogChannel || !(caseLogChannel instanceof TextChannel || caseLogChannel instanceof NewsChannel)) return null;
|
||||
|
||||
let result;
|
||||
let result: InternalPosterMessageResult | null = null;
|
||||
try {
|
||||
if (file != null) {
|
||||
content.files = file;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue