Class: Discorb::Gateway::InviteDeleteEvent

Inherits:
GatewayEvent show all
Defined in:
lib/discorb/gateway.rb

Overview

Represents a INVITE_DELETE event.

Instance Attribute Summary collapse

Method Summary

Methods inherited from GatewayEvent

#inspect

Instance Attribute Details

#channel -> nil, Discorb::Channel (readonly)

Note:

This method returns an object from client cache. it will return nil if the object is not in cache.

Returns:

  • (nil)

    The object wasn't cached.

  • (Discorb::Channel)

    The channel the message was sent in.



# File 'lib/discorb/gateway.rb', line 417

#code -> String (readonly)

Returns The invite code.

Returns:

  • (String)

    The invite code.



415
416
417
# File 'lib/discorb/gateway.rb', line 415

def code
  @code
end

#guild -> nil, Discorb::Guild (readonly)

Note:

This method returns an object from client cache. it will return nil if the object is not in cache.

Returns:

  • (nil)

    The object wasn't cached.

  • (Discorb::Guild)

    The guild the message was sent in.



# File 'lib/discorb/gateway.rb', line 417