Class: Discordrb::Events::InviteCreateEvent

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

Overview

Raised when an invite is created.

Instance Attribute Summary collapse

Attributes inherited from Event

#bot

Instance Attribute Details

#channelChannel (readonly)



13
14
15
# File 'lib/discordrb/events/invites.rb', line 13

def channel
  @channel
end

#codeString (readonly)

Returns The code for the created invite.

See Also:



33
# File 'lib/discordrb/events/invites.rb', line 33

delegate :code, :created_at, :max_age, :max_uses, :temporary, :inviter, to: :invite

#created_atTime (readonly)

Returns The time the invite was created at.

See Also:



33
# File 'lib/discordrb/events/invites.rb', line 33

delegate :code, :created_at, :max_age, :max_uses, :temporary, :inviter, to: :invite

#inviteInvite (readonly)



7
8
9
# File 'lib/discordrb/events/invites.rb', line 7

def invite
  @invite
end

#inviterUser (readonly)

Returns The user that created the invite.

See Also:



33
# File 'lib/discordrb/events/invites.rb', line 33

delegate :code, :created_at, :max_age, :max_uses, :temporary, :inviter, to: :invite

#max_ageInteger (readonly)

Returns The maximum age of the created invite.

See Also:



33
# File 'lib/discordrb/events/invites.rb', line 33

delegate :code, :created_at, :max_age, :max_uses, :temporary, :inviter, to: :invite

#max_usesInteger (readonly)

Returns The maximum number of uses before the invite expires.

See Also:



33
# File 'lib/discordrb/events/invites.rb', line 33

delegate :code, :created_at, :max_age, :max_uses, :temporary, :inviter, to: :invite

#serverServer? (readonly)



10
11
12
# File 'lib/discordrb/events/invites.rb', line 10

def server
  @server
end

#temporarytrue, false (readonly) Also known as: temporary?

Returns Whether or not this invite grants temporary membership.

See Also:



33
# File 'lib/discordrb/events/invites.rb', line 33

delegate :code, :created_at, :max_age, :max_uses, :temporary, :inviter, to: :invite