Class: Discordrb::Events::InteractionCreateEvent
- Inherits:
-
Event
- Object
- Event
- Discordrb::Events::InteractionCreateEvent
show all
- Defined in:
- lib/discordrb/events/interactions.rb
Overview
Generic subclass for interaction events
Instance Attribute Summary collapse
Attributes inherited from Event
#bot
Instance Method Summary
collapse
Instance Attribute Details
42
|
# File 'lib/discordrb/events/interactions.rb', line 42
delegate :type, :server, :server_id, :channel, :channel_id, :user, :user_locale, :context, :user_integration?, :server_integration?, to: :interaction
|
42
|
# File 'lib/discordrb/events/interactions.rb', line 42
delegate :type, :server, :server_id, :channel, :channel_id, :user, :user_locale, :context, :user_integration?, :server_integration?, to: :interaction
|
42
|
# File 'lib/discordrb/events/interactions.rb', line 42
delegate :type, :server, :server_id, :channel, :channel_id, :user, :user_locale, :context, :user_integration?, :server_integration?, to: :interaction
|
Returns The interaction for this event.
10
11
12
|
# File 'lib/discordrb/events/interactions.rb', line 10
def interaction
@interaction
end
|
42
|
# File 'lib/discordrb/events/interactions.rb', line 42
delegate :type, :server, :server_id, :channel, :channel_id, :user, :user_locale, :context, :user_integration?, :server_integration?, to: :interaction
|
42
|
# File 'lib/discordrb/events/interactions.rb', line 42
delegate :type, :server, :server_id, :channel, :channel_id, :user, :user_locale, :context, :user_integration?, :server_integration?, to: :interaction
|
#server_integration? ⇒ true, false
42
|
# File 'lib/discordrb/events/interactions.rb', line 42
delegate :type, :server, :server_id, :channel, :channel_id, :user, :user_locale, :context, :user_integration?, :server_integration?, to: :interaction
|
42
|
# File 'lib/discordrb/events/interactions.rb', line 42
delegate :type, :server, :server_id, :channel, :channel_id, :user, :user_locale, :context, :user_integration?, :server_integration?, to: :interaction
|
42
|
# File 'lib/discordrb/events/interactions.rb', line 42
delegate :type, :server, :server_id, :channel, :channel_id, :user, :user_locale, :context, :user_integration?, :server_integration?, to: :interaction
|
#user_integration? ⇒ true, false
42
|
# File 'lib/discordrb/events/interactions.rb', line 42
delegate :type, :server, :server_id, :channel, :channel_id, :user, :user_locale, :context, :user_integration?, :server_integration?, to: :interaction
|
#user_locale ⇒ String
42
|
# File 'lib/discordrb/events/interactions.rb', line 42
delegate :type, :server, :server_id, :channel, :channel_id, :user, :user_locale, :context, :user_integration?, :server_integration?, to: :interaction
|
Instance Method Details
#defer ⇒ Object
56
57
58
|
# File 'lib/discordrb/events/interactions.rb', line 56
def defer(...)
@interaction.defer(...)
end
|
#defer_update ⇒ Object
96
97
98
|
# File 'lib/discordrb/events/interactions.rb', line 96
def defer_update
@interaction.defer_update
end
|
#delete_message ⇒ Object
91
92
93
|
# File 'lib/discordrb/events/interactions.rb', line 91
def delete_message(...)
@interaction.delete_message(...)
end
|
#delete_response ⇒ Object
76
77
78
|
# File 'lib/discordrb/events/interactions.rb', line 76
def delete_response
@interaction.delete_response
end
|
#edit_message ⇒ Object
86
87
88
|
# File 'lib/discordrb/events/interactions.rb', line 86
def edit_message(...)
@interaction.edit_message(...)
end
|
#edit_response ⇒ Object
71
72
73
|
# File 'lib/discordrb/events/interactions.rb', line 71
def edit_response(...)
@interaction.edit_response(...)
end
|
#get_component ⇒ Object
101
102
103
|
# File 'lib/discordrb/events/interactions.rb', line 101
def get_component(...)
@interaction.get_component(...)
end
|
#respond ⇒ Object
51
52
53
|
# File 'lib/discordrb/events/interactions.rb', line 51
def respond(...)
@interaction.respond(...)
end
|
#send_message ⇒ Object
81
82
83
|
# File 'lib/discordrb/events/interactions.rb', line 81
def send_message(...)
@interaction.send_message(...)
end
|
#show_modal ⇒ Object
66
67
68
|
# File 'lib/discordrb/events/interactions.rb', line 66
def show_modal(...)
@interaction.show_modal(...)
end
|
#update_message ⇒ Object
61
62
63
|
# File 'lib/discordrb/events/interactions.rb', line 61
def update_message(...)
@interaction.update_message(...)
end
|