mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-24 10:05:03 +00:00
tslint doesnt like labels
This commit is contained in:
parent
90b9d31320
commit
3d31612754
1 changed files with 5 additions and 5 deletions
|
@ -26,12 +26,12 @@ export const RunAutomodOnThreadCreate = typedGuildEventListener<AutomodPluginTyp
|
||||||
const sourceMessage = sourceChannel.messages.cache.find(
|
const sourceMessage = sourceChannel.messages.cache.find(
|
||||||
(m) => m.thread?.id === thread.id || m.reference?.channelId === thread.id,
|
(m) => m.thread?.id === thread.id || m.reference?.channelId === thread.id,
|
||||||
);
|
);
|
||||||
if (!sourceMessage) break messageBlock;
|
if (sourceMessage) {
|
||||||
|
|
||||||
const savedMessage = GuildSavedMessages.msgToSavedMessage(sourceMessage);
|
const savedMessage = GuildSavedMessages.msgToSavedMessage(sourceMessage);
|
||||||
savedMessage.channel_id = thread.id;
|
savedMessage.channel_id = thread.id;
|
||||||
context.message = savedMessage;
|
context.message = savedMessage;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pluginData.state.queue.add(() => {
|
pluginData.state.queue.add(() => {
|
||||||
pluginData.state.recentActions.push({
|
pluginData.state.recentActions.push({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue