Class: Discordrb::BulkBan

Inherits:
Object
  • Object
show all
Defined in:
lib/discordrb/data/server.rb

Overview

A bulk ban entry on a server

Instance Attribute Summary collapse

Instance Attribute Details

#banned_usersArray<Integer> (readonly)

Returns Array of user IDs that were banned.

Returns:

  • (Array<Integer>)

    Array of user IDs that were banned.



1163
1164
1165
# File 'lib/discordrb/data/server.rb', line 1163

def banned_users
  @banned_users
end

#failed_usersArray<Integer> (readonly)

Returns Array of user IDs that couldn't be banned.

Returns:

  • (Array<Integer>)

    Array of user IDs that couldn't be banned.



1166
1167
1168
# File 'lib/discordrb/data/server.rb', line 1166

def failed_users
  @failed_users
end

#reasonString? (readonly)

Returns The reason these users were banned.

Returns:

  • (String, nil)

    The reason these users were banned.



1160
1161
1162
# File 'lib/discordrb/data/server.rb', line 1160

def reason
  @reason
end

#serverServer (readonly)

Returns The server this bulk ban belongs to.

Returns:

  • (Server)

    The server this bulk ban belongs to.



1157
1158
1159
# File 'lib/discordrb/data/server.rb', line 1157

def server
  @server
end