mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Stop Outdated field from showing in [p]info when up-to-date (#3730)
* Oudated-B-Gone! * Meh * mehhh
This commit is contained in:
parent
3d9ee3f2b4
commit
da4e4d4ad0
@ -350,14 +350,13 @@ class Core(commands.Cog, CoreLogic):
|
||||
embed.add_field(name="Python", value=python_version)
|
||||
embed.add_field(name="discord.py", value=dpy_version)
|
||||
embed.add_field(name=_("Red version"), value=red_version)
|
||||
if outdated in (True, None):
|
||||
if outdated is True:
|
||||
outdated_value = _("Yes, {version} is available").format(
|
||||
outdated_value = _("Yes, {version} is available.").format(
|
||||
version=data["info"]["version"]
|
||||
)
|
||||
elif outdated is None:
|
||||
outdated_value = _("Checking for updates failed.")
|
||||
else:
|
||||
outdated_value = _("No")
|
||||
outdated_value = _("Checking for updates failed.")
|
||||
embed.add_field(name=_("Outdated"), value=outdated_value)
|
||||
if custom_info:
|
||||
embed.add_field(name=_("About this instance"), value=custom_info, inline=False)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user