errors.rb 637 B

1234567891011121314151617181920212223242526272829303132
  1. ERROR_RED = "#c42d2d"
  2. def error_embed(message)
  3. Embed.new(
  4. title: "There was an Error",
  5. description: message,
  6. color: ERROR_RED,
  7. footer: {
  8. text: "For more help, feel free to ask a Moderator or Guildmaster"
  9. }
  10. )
  11. end
  12. def admin_error_embed(message)
  13. Embed.new(
  14. title: "Error",
  15. description: message,
  16. color: ERROR_RED
  17. )
  18. end
  19. def command_error_embed(message, command)
  20. Embed.new(
  21. title: "There was an Error",
  22. description: message,
  23. color: ERROR_RED,
  24. footer: {
  25. text: "For more help, feel free to ask a Moderator or Guildmaster"
  26. },
  27. fields: command_usage(command)
  28. )
  29. end