def match(event)
      dummy_handler = EventContainer.handler_class(@type).new(@attributes, @bot)
      return [nil, nil] unless event.instance_of?(@type) && dummy_handler.matches?(event)

      should_delete = nil
      should_delete = true if (@block && @block.call(event) != false) || !@block

      [@key, should_delete]
    end
def match(event)
      dummy_handler = EventContainer.handler_class(@type).new(@attributes, @bot)
      return [nil, nil] unless event.instance_of?(@type) && dummy_handler.matches?(event)

      should_delete = nil
      should_delete = true if (@block && @block.call(event) != false) || !@block

      [@key, should_delete]
    end
Makes a new await. For internal use only.
 @!visibility private
 Checks whether the await can be triggered by the given event, and if it can, execute the block
 and return its result along with this await's key.
 @param event [Event] An event to check for.
 @return [Array] This await's key and whether or not it should be deleted. If there was no match, both are nil.