Merge pull request #34 from Oreo639/err-err

Show dderr value number if not in list
This commit is contained in:
Ave 2019-04-19 08:01:10 +00:00 committed by GitHub
commit 2be497be9b
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
level = (rc >> 27) & 0x1F
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",
value=dds_descriptions[desc])
embed.add_field(name="Summary", value=dds_summaries[summ])
embed.add_field(name="Level", value=dds_levels[level])
value=dds_descriptions.get(desc, desc))
embed.add_field(name="Summary", value=dds_summaries.get(summ, summ))
embed.add_field(name="Level", value=dds_levels.get(level, level))
embed.set_footer(text="Console: 3DS")
await ctx.send(embed=embed)