Represents a function that accepts four arguments (Exception, String, RestRequest<?> and
RestRequestResult) and produces a discord exception of type T.
An enum with all web socket close reasons as
defined by RFC 6455 (1000-2999),
assigned by IANA (3000-3999),
assigned by
Discord
(4000-4998) or self-assigned (4999).