Fixed link that caused 400 on Discords side

This commit is contained in:
Frisk 2018-07-03 21:18:43 +02:00
parent 7a7f62c1fc
commit daf780e626
No known key found for this signature in database
GPG key ID: 0E9A7D3C0A01586C

View file

@ -220,7 +220,7 @@ def webhook_formatter(action, STATIC, **params):
#link = "https://{wiki}.gamepedia.com/UserProfile:{target}".format(wiki=settings["wiki"], target=params["target"].replace(" ", "_").replace(')', '\)'))
embed["title"] = _("Deleted a comment on {target}'s profile").format(target=params["target"])
elif action == 20:
link = "https://{wiki}.gamepedia.com/"+params["user"].replace(" ", "_").replace(')', '\)')
link = "https://{wiki}.gamepedia.com/".format(wiki=settings["wiki"])+params["user"].replace(" ", "_").replace(')', '\)')
embed["title"] = _("Changed group membership for {target}").format(target=params["user"])
if params["old_groups"].count(' ') < params["new_groups"].count(' '):
embed["thumbnail"]["url"] = "https://i.imgur.com/WnGhF5g.gif"