Files
discordeno/helpers/misc/editBotStatus.ts
ITOH b469c98527 refactor(gateway,types,util)!: finalize gateway code (#2241)
* push some cursed stuff

* bucket

* fix bugs and hack start ordered

* some management improvements

* more gw stuff

* f

* rename manager to gateway

* remove basic thing

* remove old stuff

* f

* fix imp

* fixes
2022-05-25 22:27:49 +02: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)));
}