mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-23 09:35:02 +00:00
.catch
This commit is contained in:
parent
e1499f64fc
commit
8c3d232eb9
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue