Files
discordeno/plugins/bot/helpers/misc/editBotStatus.ts
Skillz4Killz ffe7cdbc6f feat: base plugin lib idea (#2308)
* feat: base plugin lib idea

* fix: stuff

* fmt

* fix: imports and exports

* fix: errors & tests

* fix: remove logs
2022-06-18 18:46:37 -04:00

7 lines
269 B
TypeScript

import { Bot } from "../../bot.ts";
import { StatusUpdate } from "./editShardStatus.ts";
export async function editBotStatus(bot: Bot, data: StatusUpdate) {
await Promise.all(bot.gateway.manager.shards.map((shard) => bot.helpers.editShardStatus(shard.id, data)));
}