mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-30 23:40:07 +00:00
21 lines
588 B
TypeScript
21 lines
588 B
TypeScript
import { ActivityTypes } from "../../types/shared.ts";
|
|
import { assertExists } from "../deps.ts";
|
|
import { bot } from "../mod.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);
|
|
});
|