mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Merge remote-tracking branch 'origin/rewrite1' into rewrite1
This commit is contained in:
commit
c6daa4884a
|
@ -12,7 +12,7 @@ def embed_generic(ctx: Context, change: dict):
|
|||
embed["title"] = ctx._("Unknown event `{event}`").format(
|
||||
event="{type}/{action}".format(type=change.get("type", ""), action=change.get("action", "")))
|
||||
embed["url"] = ctx.client.create_article_path("Special:RecentChanges")
|
||||
change_params = "[```json\n{params}\n```]({support})".format(params=json.dumps(change, indent=2),
|
||||
change_params = "{support}\n```json\n{params}\n```".format(params=json.dumps(change, indent=2),
|
||||
support=ctx.settings["support"])
|
||||
if len(change_params) > 1000:
|
||||
embed.add_field(_("Report this on the support server"), ctx.settings["support"])
|
||||
|
|
Loading…
Reference in a new issue