Show dderr value number if not in list

This commit is contained in:
Oreo639 2019-04-19 00:32:55 -07:00 committed by GitHub
parent bbeaa8049e
commit ae9925f69c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,11 +47,11 @@ class Err(Cog):
summ = (rc >> 21) & 0x3F summ = (rc >> 21) & 0x3F
level = (rc >> 27) & 0x1F level = (rc >> 27) & 0x1F
embed = discord.Embed(title=f"0x{rc:X}") embed = discord.Embed(title=f"0x{rc:X}")
embed.add_field(name="Module", value=dds_modules[mod]) embed.add_field(name="Module", value=dds_modules.get(mod, mod))
embed.add_field(name="Description", embed.add_field(name="Description",
value=dds_descriptions[desc]) value=dds_descriptions.get(desc, desc))
embed.add_field(name="Summary", value=dds_summaries[summ]) embed.add_field(name="Summary", value=dds_summaries.get(summ, summ))
embed.add_field(name="Level", value=dds_levels[level]) embed.add_field(name="Level", value=dds_levels.get(level, level))
embed.set_footer(text="Console: 3DS") embed.set_footer(text="Console: 3DS")
await ctx.send(embed=embed) await ctx.send(embed=embed)