3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-30 04:35:02 +00:00

Remove hotfixMessageFetch()

This commit is contained in:
Dragory 2021-08-20 20:01:32 +03:00
parent 0ac7969a6e
commit 80e8bab90f
8 changed files with 8 additions and 38 deletions

View file

@ -5,7 +5,6 @@ import { LogType } from "../../../data/LogType";
import { isDiscordAPIError, sleep } from "../../../utils";
import { LogsPlugin } from "../../Logs/LogsPlugin";
import { ReactionRolesPluginType } from "../types";
import { hotfixMessageFetch } from "../../../utils/hotfixMessageFetch";
const CLEAR_ROLES_EMOJI = "❌";
@ -26,7 +25,7 @@ export async function applyReactionRoleReactionsToMessage(
let targetMessage;
try {
targetMessage = await hotfixMessageFetch(channel, messageId as Snowflake);
targetMessage = channel.messages.fetch(messageId);
} catch (e) {
if (isDiscordAPIError(e)) {
if (e.code === 10008) {