GuildCheck.none constructor

GuildCheck.none(
  1. {String? name}
)

Create a GuildCheck that succeeds if the context originated outside of a guild (generally, in private messages).

You might also be interested in:

Implementation

GuildCheck.none({String? name})
    : guildIds = [],
      super(
        (context) => context.guild == null,
        name: name ?? 'Guild Check on <none>',
        allowsDm: true,
        requiredPermissions: Permissions(0),
      );