Class: Discordrb::Events::InviteDeleteEvent

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

Overview

Raised when an invite is deleted.

Instance Attribute Summary collapse

Attributes inherited from Event

#bot

Instance Attribute Details

#channelChannel (readonly)

Returns The channel the deleted invite was for.

Returns:

  • (Channel)

    The channel the deleted invite was for.



49
50
51
# File 'lib/discordrb/events/invites.rb', line 49

def channel
  @channel
end

#codeString (readonly)

Returns The code of the deleted invite.

Returns:

  • (String)

    The code of the deleted invite.



55
56
57
# File 'lib/discordrb/events/invites.rb', line 55

def code
  @code
end

#serverServer? (readonly)

Returns The server the deleted invite was for.

Returns:

  • (Server, nil)

    The server the deleted invite was for.



52
53
54
# File 'lib/discordrb/events/invites.rb', line 52

def server
  @server
end