class Glima::Command::Trash
Public Class Methods
new(message_ids)
click to toggle source
# File lib/glima/command/trash.rb, line 5 def initialize(message_ids) client.batch do |batch_client| message_ids.each do |id| batch_client.trash_user_message(id) do |res, err| if res puts "Trash #{id} successfully." else puts "Error: #{err}" end end end end end