3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 09:35:02 +00:00
This commit is contained in:
metal 2021-09-08 10:14:07 +00:00 committed by GitHub
parent e1499f64fc
commit 8c3d232eb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
import { Message } from "discord.js"; import { Message } from "discord.js";
import * as t from "io-ts"; import * as t from "io-ts";
import { ChannelTypeStrings } from "src/types"; import { ChannelTypeStrings } from "src/types";
import { noop } from "src/utils";
import { automodAction } from "../helpers"; import { automodAction } from "../helpers";
export const CrosspostMessageAction = automodAction({ export const CrosspostMessageAction = automodAction({
@ -23,7 +24,7 @@ export const CrosspostMessageAction = automodAction({
); );
for (const msg of messages) { for (const msg of messages) {
await msg?.crosspost(); await msg?.crosspost().catch(noop);
} }
}, },
}); });