Class: Discordrb::Events::ApplicationCommandPermissionsUpdateEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/discordrb/events/interactions.rb

Overview

An event for whenever an application command's permissions are updated.

Instance Attribute Summary collapse

Attributes inherited from Event

#bot

Instance Method Summary collapse

Instance Attribute Details

#application_idInteger (readonly)



549
550
551
# File 'lib/discordrb/events/interactions.rb', line 549

def application_id
  @application_id
end

#command_idInteger? (readonly)



543
544
545
# File 'lib/discordrb/events/interactions.rb', line 543

def command_id
  @command_id
end

#permissionsArray<ApplicationCommand::Permission> (readonly)



546
547
548
# File 'lib/discordrb/events/interactions.rb', line 546

def permissions
  @permissions
end

#server_idInteger (readonly)



540
541
542
# File 'lib/discordrb/events/interactions.rb', line 540

def server_id
  @server_id
end

Instance Method Details

#serverServer



563
564
565
# File 'lib/discordrb/events/interactions.rb', line 563

def server
  @bot.server(@server_id)
end