mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 16:30:08 +00:00
* fix: get tests runnable * fix: tests are now passing * fix: 32 passing tests * fix: deno fmt u dumb dumb work automatically for once in your life * fix: 54 tests passing now * fix: 94 passing, itoh was wrong he guess wrong hehe * fix: remove debug logs * fix: remove broken webhook test for now Co-authored-by: ITOH <to@itoh.at>
21 lines
608 B
TypeScript
21 lines
608 B
TypeScript
import { assertExists } from "../deps.ts";
|
|
import { bot } from "../mod.ts";
|
|
import { ActivityTypes } from "../../src/types/activity/activityTypes.ts";
|
|
import { delayUntil } from "../utils.ts";
|
|
|
|
Deno.test("[misc] edit the bot's status", async function () {
|
|
bot.events.presenceUpdate = function (_bot, presense, _oldPresense) {
|
|
assertExists(presense);
|
|
};
|
|
|
|
bot.events.botUpdate = function (bot, user) {
|
|
};
|
|
|
|
bot.helpers.editBotStatus({
|
|
status: "dnd",
|
|
activities: [{ name: "lts20050703", type: ActivityTypes.Game, createdAt: Date.now() }],
|
|
});
|
|
|
|
await delayUntil(10000, () => false);
|
|
});
|