Class: Discordrb::Events::ApplicationCommandPermissionsUpdateEvent
- Defined in:
- lib/discordrb/events/interactions.rb
Overview
An event for whenever an application command's permissions are updated.
Instance Attribute Summary collapse
-
#application_id ⇒ Integer
readonly
The ID of the application whose commands were updated.
-
#command_id ⇒ Integer?
readonly
The ID of the application command that was updated.
-
#permissions ⇒ Array<ApplicationCommand::Permission>
readonly
The permissions that were updated.
-
#server_id ⇒ Integer
readonly
The ID of the server where the command permissions were updated.
Attributes inherited from Event
Instance Method Summary collapse
-
#server ⇒ Server
The server where the command's permissions were updated.
Instance Attribute Details
#application_id ⇒ Integer (readonly)
Returns the ID of the application whose commands were updated.
543 544 545 |
# File 'lib/discordrb/events/interactions.rb', line 543 def application_id @application_id end |
#command_id ⇒ Integer? (readonly)
Returns the ID of the application command that was updated.
537 538 539 |
# File 'lib/discordrb/events/interactions.rb', line 537 def command_id @command_id end |
#permissions ⇒ Array<ApplicationCommand::Permission> (readonly)
Returns the permissions that were updated.
540 541 542 |
# File 'lib/discordrb/events/interactions.rb', line 540 def @permissions end |
#server_id ⇒ Integer (readonly)
Returns the ID of the server where the command permissions were updated.
534 535 536 |
# File 'lib/discordrb/events/interactions.rb', line 534 def server_id @server_id end |
Instance Method Details
#server ⇒ Server
Returns the server where the command's permissions were updated.
557 558 559 |
# File 'lib/discordrb/events/interactions.rb', line 557 def server @bot.server(@server_id) end |