Skip to content

Error Catching

There are some errors which will be most common when making a command out of it and that should be caught. I have made error catching for this which can be caught using $onlyIf which makes sure that you won’t see unnecessary aoi.jikan ERRORS while making embeds.

Error Table

ErrorCatchFunction
Not Found (Anime/Manga)NFError$getID
Anime Character Not FoundACNFError$animeCharInfo
Manga Character Not FoundMCNFError$mangaCharInfo

Usage:

  • $onlyIf[$getID[anime/manga_name]!=NFError;]
  • $onlyIf[$animeCharInfo[$getID[anime_name];character;type]!=ACNFError;]
  • $onlyIf[$mangaCharInfo[$getID[manga_name];character;type]!=MCNFError;]

Embed Error [$strip]

You may sometimes encounter embed errors when the code returns more than 1024 characters, mainly in synopsis/description of an anime/manga. To rectify or catch em, I have made a function to strip these characters in a concise way.

You can just use it like $strip[whatever function] to get those characters more than 1000 length away!