Class ApplicationCommandPermissionUpdateEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.command.ApplicationCommandEvent
-
- discord4j.core.event.domain.command.ApplicationCommandPermissionUpdateEvent
-
public class ApplicationCommandPermissionUpdateEvent extends ApplicationCommandEvent
Dispatched when an application command permission relevant to the current user is updated. This event is dispatched by Discord.- See Also:
- Application Command Permissions Update
-
-
Constructor Summary
Constructors Constructor Description ApplicationCommandPermissionUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, ApplicationCommandGuildPermissions permissions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Snowflake
getApplicationId()
Gets the ID of the application the command belongs to.Mono<Guild>
getGuild()
Requests to retrieve theGuild
that had an application command updated in this event.Snowflake
getGuildId()
Snowflake
getId()
Gets unique id of the command.List<ApplicationCommandPermission>
getPermissions()
Returns the permissions for the command in the guild.-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
ApplicationCommandPermissionUpdateEvent
public ApplicationCommandPermissionUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, ApplicationCommandGuildPermissions permissions)
-
-
Method Detail
-
getId
public Snowflake getId()
Gets unique id of the command.- Returns:
- The unique id of the command.
-
getGuildId
public Snowflake getGuildId()
- Returns:
- The ID of the guild involved.
-
getGuild
public Mono<Guild> getGuild()
Requests to retrieve theGuild
that had an application command updated in this event.
-
getApplicationId
public Snowflake getApplicationId()
Gets the ID of the application the command belongs to.- Returns:
- th ID of the application the command belongs to
-
getPermissions
public List<ApplicationCommandPermission> getPermissions()
Returns the permissions for the command in the guild.- Returns:
- the permissions for the command in the guild.
-
-