using System;
namespace Discord.Net
{
///
/// The exception that is thrown when the user is being rate limited by Discord.
///
public class RateLimitedException : TimeoutException
{
///
/// Gets the request object used to send the request.
///
public IRequest Request { get; }
///
/// Initializes a new instance of the class using the
/// sent.
///
public RateLimitedException(IRequest request)
: base("You are being rate limited.")
{
Request = request;
}
}
}