module DList::User::Verification
User
client - verification (only for staff)
Public Instance Methods
approve(id, reason = 'Brak powodu')
click to toggle source
Approves specified bot
@param id [Integer] bot ID @param reason [String] reason for approving @return [Boolean] true if operation succeded
# File lib/dblista/user/verification.rb, line 13 def approve(id, reason = 'Brak powodu') DList._validate_id id DList._post("/bots/verify/#{id}/approve?reason=#{CGI.escape reason}", nil, @token) true end
reject(id, reason = 'Brak powodu')
click to toggle source
Rejects specified bot
@param id [Integer] bot ID @param reason [String] reason for rejecting @return [Boolean] true if operation succeded
# File lib/dblista/user/verification.rb, line 25 def reject(id, reason = 'Brak powodu') DList._validate_id id DList._post("/bots/verify/#{id}/reject?reason=#{CGI.escape reason}", nil, @token) true end
set_pending(id)
click to toggle source
Sets specified bot verification status to pending
@param id [Integer] bot ID @return [Boolean] true if operation succeded
# File lib/dblista/user/verification.rb, line 36 def set_pending(id) DList._validate_id id DList._post("/bots/#{id}/set-pending", nil, @token) true end