mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 09:50:07 +00:00
14 lines
320 B
TypeScript
14 lines
320 B
TypeScript
import { Bot } from '../../bot.js'
|
|
import { StatusUpdate } from './editShardStatus.js'
|
|
|
|
export async function editBotStatus (
|
|
bot: Bot,
|
|
data: StatusUpdate
|
|
): Promise<void> {
|
|
await Promise.all(
|
|
bot.gateway.manager.shards.map(
|
|
async (shard) => await bot.helpers.editShardStatus(shard.id, data)
|
|
)
|
|
)
|
|
}
|