Class: Discordrb::Events::ServerMemberDeleteEvent

Inherits:
ServerMemberEvent show all
Defined in:
lib/discordrb/events/members.rb

Overview

Member leaves

Instance Attribute Summary

Attributes inherited from ServerMemberEvent

#roles, #server, #user

Attributes inherited from Event

#bot

Instance Method Summary collapse

Methods inherited from ServerMemberEvent

#initialize

Constructor Details

This class inherits a constructor from Discordrb::Events::ServerMemberEvent

Instance Method Details

#init_user(data, bot) ⇒ Object

Overide init_user to account for the deleted user on the server



83
84
85
# File 'lib/discordrb/events/members.rb', line 83

def init_user(data, bot)
  @user = Discordrb::User.new(data['user'], bot)
end