delete: removeUserReaction

This commit is contained in:
ITOH
2021-04-30 15:22:48 +02:00
parent a7de104b9a
commit 8c347747dd
5 changed files with 24 additions and 45 deletions
+3 -8
View File
@@ -1,12 +1,7 @@
import {
addReaction,
cache,
removeUserReaction,
sendMessage,
} from "../../mod.ts";
import { defaultTestOptions, tempData } from "../ws/start_bot.ts";
import { addReaction, cache, removeReaction, sendMessage } from "../../mod.ts";
import { assertEquals, assertExists } from "../deps.ts";
import { delayUntil } from "../util/delay_until.ts";
import { defaultTestOptions, tempData } from "../ws/start_bot.ts";
async function ifItFailsBlameWolf(type: "getter" | "raw") {
const message = await sendMessage(tempData.channelId, "Hello World!");
@@ -32,7 +27,7 @@ async function ifItFailsBlameWolf(type: "getter" | "raw") {
assertEquals(await cache.messages.get(message.id)?.reactions?.length, 1);
if (type === "raw") {
await removeUserReaction(
await removeReaction(
message.channelId,
message.id,
"❤",