GuildCheck.anyId constructor

GuildCheck.anyId(
  1. Iterable<Snowflake> ids,
  2. {String? name}
)

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

Implementation

GuildCheck.anyId(Iterable<Snowflake> ids, {String? name})
    : guildIds = ids,
      super(
        (context) => ids.contains(context.guild?.id),
        name: name ?? 'Guild Check on any of [${ids.join(', ')}]',
        allowsDm: false,
      );