GuildCheck.id constructor

GuildCheck.id(
  1. Snowflake id,
  2. {String? name}
)

Create a GuildCheck that succeeds if the ID of the guild the context originated in is id.

Implementation

GuildCheck.id(Snowflake id, {String? name})
    : guildIds = [id],
      super(
        (context) => context.guild?.id == id,
        name: name ?? 'Guild Check on $id',
        allowsDm: false,
      );