docs: def _gather_buffers(self, event: Message):
          """
          Gathers all the data from a buffer.
          """
          if isinstance(event, BytesMessage):
              buf = self._byte_buffer
          else:
              buf = self._string_buffer
  
          # yay for code shortening
          buf.write(event.data)
          buf.seek(0)
          data = buf.read()
          buf.seek(0)
          buf.truncate()
          return data