UserCheck.anyId constructor

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

Create a new UserCheck that succeeds if the ID of the user that created the context is in ids.

Implementation

UserCheck.anyId(Iterable<Snowflake> ids, {String? name})
    : userIds = ids,
      super(
        name: name ?? 'User Check on any of [${ids.join(', ')}]',
        (context) => ids.contains(context.user.id),
      );