Skip to content

Commit 52f8dbc

Browse files
refactor: update botstrap to be more beginner-friendly (#3417)
- provide completion message - silence httpcore logger - filter out botcore's warning for patching send_typing - use short url for contributing link - only use logging.warning and up for things that need user action - use logging.fatal when exiting due to error - upgrade application flags if intents weren't enabled - provide an invite link if the bot isn't in the configured guild - add audit log reason to requests that support it - sync emojis to the test guild - provide a helpful error message when BOT_TOKEN is not set, use pydantic for env management - remove special forum channel handling - fix: add utf8 encoding for windows support
1 parent 163e72a commit 52f8dbc

File tree

2 files changed

+407
-146
lines changed

2 files changed

+407
-146
lines changed

bot/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ class Webhook(BaseModel):
264264
channel: int
265265

266266

267-
class _Webhooks(EnvConfig, env_prefix="webhooks_"):
267+
class _Webhooks(EnvConfig, env_prefix="webhooks_", nested_model_default_partial_update=True):
268268

269269
big_brother: Webhook = Webhook(id=569133704568373283, channel=Channels.big_brother)
270270
dev_log: Webhook = Webhook(id=680501655111729222, channel=Channels.dev_log)

0 commit comments

Comments
 (0)