UserCheck.anyId constructor
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),
);