1212 from interactions .models .discord .snowflake import Snowflake_Type
1313
1414__all__ = (
15- "NaffException " ,
15+ "LibraryException " ,
1616 "BotException" ,
1717 "GatewayNotFound" ,
1818 "LoginError" ,
5050)
5151
5252
53- class NaffException (Exception ):
54- """Base Exception of Naff ."""
53+ class LibraryException (Exception ):
54+ """Base Exception of i.py ."""
5555
5656
57- class BotException (NaffException ):
57+ class BotException (LibraryException ):
5858 """An issue occurred in the client, likely user error."""
5959
6060
61- class GatewayNotFound (NaffException ):
61+ class GatewayNotFound (LibraryException ):
6262 """An exception that is raised when the gateway for Discord could not be found."""
6363
6464 def __init__ (self ) -> None :
@@ -69,7 +69,7 @@ class LoginError(BotException):
6969 """The bot failed to login, check your token."""
7070
7171
72- class HTTPException (NaffException ):
72+ class HTTPException (LibraryException ):
7373 """
7474 A HTTP request resulted in an exception.
7575
@@ -193,11 +193,11 @@ class RateLimited(HTTPException):
193193 """Discord is rate limiting this application."""
194194
195195
196- class TooManyChanges (NaffException ):
196+ class TooManyChanges (LibraryException ):
197197 """You have changed something too frequently."""
198198
199199
200- class WebSocketClosed (NaffException ):
200+ class WebSocketClosed (LibraryException ):
201201 """The websocket was closed."""
202202
203203 code : int = 0
@@ -224,7 +224,7 @@ def __init__(self, code: int) -> None:
224224 super ().__init__ (f"The Websocket closed with code: { code } - { self .codes .get (code , 'Unknown Error' )} " )
225225
226226
227- class VoiceWebSocketClosed (NaffException ):
227+ class VoiceWebSocketClosed (LibraryException ):
228228 """The voice websocket was closed."""
229229
230230 code : int = 0
@@ -251,7 +251,7 @@ def __init__(self, code: int) -> None:
251251 super ().__init__ (f"The Websocket closed with code: { code } - { self .codes .get (code , 'Unknown Error' )} " )
252252
253253
254- class WebSocketRestart (NaffException ):
254+ class WebSocketRestart (LibraryException ):
255255 """The websocket closed, and is safe to restart."""
256256
257257 resume : bool = False
@@ -394,7 +394,7 @@ class AlreadyResponded(AlreadyDeferred):
394394 """An interaction was already responded to, and you attempted to defer it"""
395395
396396
397- class ForeignWebhookException (NaffException ):
397+ class ForeignWebhookException (LibraryException ):
398398 """Raised when you attempt to send using a webhook you did not create."""
399399
400400
@@ -416,7 +416,7 @@ def __init__(self) -> None:
416416 super ().__init__ ("Bot is not connected to any voice channels in given guild" )
417417
418418
419- class VoiceConnectionTimeout (NaffException ):
419+ class VoiceConnectionTimeout (LibraryException ):
420420 """Raised when the bot fails to connect to a voice channel."""
421421
422422 def __init__ (self ) -> None :
0 commit comments