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, gateway_url: str | None = None, dev: bool = False, **options)
Bases: AutoShardedBot
BallsDex Discord bot
Source code in ballsdex/core/bot.py
add_cog
add_cog(cog: Cog, /, *, override: bool = False, guild: Snowflake | None = MISSING, guilds: Sequence[Snowflake] = MISSING) -> None
Source code in ballsdex/core/bot.py
blacklist_check
blacklist_check(source: Interaction[Self] | Context[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 | AppCommandError)
Source code in ballsdex/core/bot.py
397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 | |
on_ready
Source code in ballsdex/core/bot.py
setup_hook
Source code in ballsdex/core/bot.py
CommandTree
Bases: CommandTree[Bot]
interaction_check
interaction_check(interaction: Interaction[Bot]) -> bool
Source code in ballsdex/core/bot.py
load_command_mentions
load_command_mentions(app_commands: list[AppCommand] | None = None, *, cog: Cog | None = None)
Source code in ballsdex/core/bot.py
sync
sync(*, guild: Snowflake | None = None) -> list[AppCommand]
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])