Class: OnyxCord::Events::InviteDeleteEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/onyxcord/events/invite/delete.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.



9
10
11
# File 'lib/onyxcord/events/invite/delete.rb', line 9

def channel
  @channel
end

#codeString (readonly)

Returns The code of the deleted invite.

Returns:

  • (String)

    The code of the deleted invite.



15
16
17
# File 'lib/onyxcord/events/invite/delete.rb', line 15

def code
  @code
end

#serverServer? (readonly)

Returns The server the deleted invite was for.

Returns:

  • (Server, nil)

    The server the deleted invite was for.



12
13
14
# File 'lib/onyxcord/events/invite/delete.rb', line 12

def server
  @server
end