UserCheck.id constructor

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

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

Implementation

UserCheck.id(Snowflake id, {String? name})
    : userIds = [id],
      super(
        name: name ?? 'User Check on $id',
        (context) => context.user.id == id,
      );