📁
randomstuff.py
  • randomstuff.py
  • Clients
    • Client
    • AsyncClient
  • Data Classes
    • AIResponse
    • Joke
    • JokeFlags
    • Waifu
    • Weather
    • WeatherLocation
    • CurrentWeather
    • WeatherForecast
  • Sub modules
    • utils
  • Errors tree
    • Forbidden
      • BadAPIKey
      • PlanNotAllowed
    • ArgumentError
      • InvalidPlanError
      • InvalidVersionError
      • InvalidServerError
      • InvalidType
      • InvalidCityError
    • HTTPError
  • Brief
    • Warnings
    • Lists
    • Unique ID
    • Joke 101
    • FAQ
    • Changelogs
Powered by GitBook
On this page
  • Attributes
  • category
  • type
  • joke
  • flags
  • id
  • safe
  • lang
  • language

Was this helpful?

  1. Data Classes

Joke

PreviousAIResponseNextJokeFlags

Last updated 3 years ago

Was this helpful?

Represents a Joke returned in method.

Attributes

Attributes

category

The category of the joke.

Type:

type

The type of joke. Can either be single or twopart.

joke

flags

The flags a joke has. These are useful to filter the jokes.

id

The joke's unique ID.

safe

Determines if the joke is marked safe or not.

This is very helpful to see if the joke is safe or not because if this is True, most of the explicit flags are usually False.

lang

The language of the joke. Mostly it is en

language

Type:

The actual joke. This can be dict or str depending on what the type of joke is. If the type if single this will be str otherwise this will be dict having two values, setup and delivery. Read page to see how joke object works.

Type: or

Type:

Type:

Type:

Type:

An alias for attribute

Type:

str
Jokes 101
str
dict
JokeFlags
int
bool
str
dict
lang
category
type
joke
flags
id
safe
lang
language
str
get_joke()