GuildApplicationCommandPermissions class

Guild Application Command Permissions structure

Application command permissions allow you to enable or disable commands for specific users or roles within a guild.

https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-guild-application-command-permissions-structure

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

GuildApplicationCommandPermissions({required String id, String? appplicationId, String? guildId, required List<ApplicationCommandPermissions> permissions})
Constructor
GuildApplicationCommandPermissions.fromJson(Map<String, dynamic> json)
From json
factory

Properties

appplicationId String?
the id of the application the command belongs to
final
guildId String?
the id of the guild
final
hashCode int
The hash code for this object.
no setterinherited
id String
the id of the command
final
permissions List<ApplicationCommandPermissions>
the permissions for the command in the guild
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
To json
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited