allow method

void allow({
  1. bool? reply,
  2. bool? everyone,
  3. bool? users,
  4. bool? roles,
})

Allow @everyone and @here if everyone is true Allow @user if users is true Allow @role if roles is true

Implementation

void allow({bool? reply, bool? everyone, bool? users, bool? roles}) {
  if (everyone != null) {
    this._allowEveryone = everyone;
  }

  if (users != null) {
    this._allowUsers = users;
  }
  if (roles != null) {
    this._allowRoles = roles;
  }

  if (reply != null) {
    this._allowReply = reply;
  }
}