Class: Discorb::Gateway::AutoModerationActionExecutionEvent
- Inherits:
-
GatewayEvent
- Object
- GatewayEvent
- Discorb::Gateway::AutoModerationActionExecutionEvent
- Defined in:
- lib/discorb/gateway_events.rb
Overview
Represents a AUTO_MODERATION_ACTION_EXECUTION
event.
Instance Attribute Summary collapse
-
#action -> Discorb::AutoModRule::Action
readonly
The action that was executed.
- #alert_system_message_id -> Discorb::Snowflake? readonly
- #channel -> Object readonly
-
#content -> String
readonly
The content of the message that was sent.
- #guild -> Object readonly
- #matched_content -> String? readonly
- #matched_keyword -> String? readonly
- #member -> Object (also: #user) readonly
- #message_id -> Discorb::Snowflake? readonly
-
#rule_id -> Discorb::Snowflake
readonly
The id of the rule.
-
#rule_trigger_type -> Symbol
readonly
The type of action that was executed.
Method Summary
Methods inherited from GatewayEvent
Instance Attribute Details
#action -> Discorb::AutoModRule::Action (readonly)
Returns The action that was executed.
592 593 594 |
# File 'lib/discorb/gateway_events.rb', line 592 def action @action end |
#alert_system_message_id -> Discorb::Snowflake? (readonly)
578 579 580 |
# File 'lib/discorb/gateway_events.rb', line 578 def @alert_system_message_id end |
#channel -> Object (readonly)
625 626 627 |
# File 'lib/discorb/gateway_events.rb', line 625 def channel @client.channels[@channel_id] end |
#content -> String (readonly)
Returns The content of the message that was sent.
581 582 583 |
# File 'lib/discorb/gateway_events.rb', line 581 def content @content end |
#guild -> Object (readonly)
619 620 621 |
# File 'lib/discorb/gateway_events.rb', line 619 def guild @client.guilds[@guild_id] end |
#matched_content -> String? (readonly)
589 590 591 |
# File 'lib/discorb/gateway_events.rb', line 589 def matched_content @matched_content end |
#matched_keyword -> String? (readonly)
585 586 587 |
# File 'lib/discorb/gateway_events.rb', line 585 def matched_keyword @matched_keyword end |
#member -> Object (readonly) Also known as: user
631 632 633 |
# File 'lib/discorb/gateway_events.rb', line 631 def member guild.members[@user_id] end |
#message_id -> Discorb::Snowflake? (readonly)
574 575 576 |
# File 'lib/discorb/gateway_events.rb', line 574 def @message_id end |
#rule_id -> Discorb::Snowflake (readonly)
Returns The id of the rule.
567 568 569 |
# File 'lib/discorb/gateway_events.rb', line 567 def rule_id @rule_id end |
#rule_trigger_type -> Symbol (readonly)
Returns The type of action that was executed.
570 571 572 |
# File 'lib/discorb/gateway_events.rb', line 570 def rule_trigger_type @rule_trigger_type end |