Skip to content
GitHub

MockGuildOverrides

interface in meocord/testing Since 4.1.0

interface MockGuildOverrides

What createMockGuild puts in the guild's caches, as the gateway would have filled them.

Members

id

id?: string

The guild's id.

name

name?: string

The guild's name, 'Guild' unless given.

preferredLocale

preferredLocale?: Locale

The language the guild's community set, 'en-US' unless given; t.forGuild() reads it.

members

members?: readonly GuildMember[]

Members in members.cache, by their id.

roles

roles?: readonly Role[]

Roles in roles.cache, by their id.

channels

channels?: readonly GuildBasedChannel[]

Channels in channels.cache, by their id.