ContentTooLongException.php 581 B

12345678910111213141516171819202122
  1. <?php
  2. /*
  3. * This file is a part of the DiscordPHP-Http project.
  4. *
  5. * Copyright (c) 2021-present David Cole <david.cole1340@gmail.com>
  6. *
  7. * This file is subject to the MIT license that is bundled
  8. * with this source code in the LICENSE file.
  9. */
  10. namespace Discord\Http\Exceptions;
  11. /**
  12. * Thrown when the Discord servers return `content longer than 2000 characters` after
  13. * a REST request. The user must use WebSockets to obtain this data if they need it.
  14. *
  15. * @author David Cole <david.cole1340@gmail.com>
  16. */
  17. class ContentTooLongException extends RequestFailedException
  18. {
  19. }