Bot class
ballsdex.core.bot
BallsDexBot
BallsDexBot(command_prefix: PrefixType[BallsDexBot], disable_message_content: bool = False, disable_time_check: bool = False, skip_tree_sync: bool = False, dev: bool = False, **options)
Bases: AutoShardedBot
BallsDex Discord bot
Source code in ballsdex/core/bot.py
assign_ids_to_app_commands
assign_ids_to_app_commands(synced_commands: list[AppCommand])
Source code in ballsdex/core/bot.py
assign_ids_to_app_groups
assign_ids_to_app_groups(group: Group, synced_commands: list[AppCommandGroup])
Source code in ballsdex/core/bot.py
blacklist_check
blacklist_check(interaction: Interaction[Self]) -> bool
Source code in ballsdex/core/bot.py
gateway_healthy
gateway_healthy() -> bool
Check whether or not the gateway proxy is ready and healthy.
Source code in ballsdex/core/bot.py
get_emoji
load_cache
Source code in ballsdex/core/bot.py
on_application_command_error
on_application_command_error(interaction: Interaction[Self], error: AppCommandError)
Source code in ballsdex/core/bot.py
on_command_error
on_command_error(context: Context, exception: CommandError)
Source code in ballsdex/core/bot.py
on_error
on_error(event_method: str, /, *args, **kwargs)
Source code in ballsdex/core/bot.py
on_ready
Source code in ballsdex/core/bot.py
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 |
|
setup_hook
Source code in ballsdex/core/bot.py
CommandTree
Bases: CommandTree
interaction_check
interaction_check(interaction: Interaction[BallsDexBot]) -> bool
Source code in ballsdex/core/bot.py
Translator
Bases: Translator
translate
translate(string: locale_str, locale: Locale, context: TranslationContextTypes) -> str | None
Source code in ballsdex/core/bot.py
on_request_end
on_request_end(session: ClientSession, trace_ctx: SimpleNamespace, params: TraceRequestEndParams)
Source code in ballsdex/core/bot.py
on_request_start
on_request_start(session: ClientSession, trace_ctx: SimpleNamespace, params: TraceRequestStartParams)
owner_check
owner_check(ctx: Context[BallsDexBot])