Repository: Cog-Creators/Red-DiscordBot

Issue:
[V3 Core] Include proper way to show admin/mod role in current guild
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported

### Type:

- [X] Suggestion
- [ ] Bug

### Brief description of the problem
No way to see current admin/mod roles or if any have been set up. Toby posted a way to use an eval to return the names but it would be easier if it was either a command or something shown when running the mod/adminrole command without arguments or if another method.
```py
[p]eval
`id = await bot.db.guild(ctx.guild).admin_role()
return next(r for r in guild.roles if r.id == id)`
```
### Expected behavior
Command showing the current guild's admin/mod role where the command is being used.
### Actual behavior
Nothing




Discussion:

Resolving patch:
diff --git a/redbot/cogs/bank/bank.py b/redbot/cogs/bank/bank.py
--- a/redbot/cogs/bank/bank.py
+++ b/redbot/cogs/bank/bank.py
@@ -1,4 +1,5 @@
 import discord
+from redbot.core.utils.chat_formatting import box
 
 from redbot.core import checks, bank
 from redbot.core.i18n import CogI18n
@@ -60,6 +61,26 @@ def __init__(self, bot: Red):
     async def bankset(self, ctx: commands.Context):
         """Base command for bank settings"""
         if ctx.invoked_subcommand is None:
+            if await bank.is_global():
+                bank_name = await bank._conf.bank_name()
+                currency_name = await bank._conf.currency()
+                default_balance = await bank._conf.default_balance()
+            else:
+                if not ctx.guild:
+                    await ctx.send_help()
+                    return
+                bank_name = await bank._conf.guild(ctx.guild).bank_name()
+                currency_name = await bank._conf.guild(ctx.guild).currency()
+                default_balance = await bank._conf.guild(ctx.guild).default_balance()
+
+            settings = (_(
+                "Bank settings:\n\n"
+                "Bank name: {}\n"
+                "Currency: {}\n"
+                "Default balance: {}"
+                "").format(bank_name, currency_name, default_balance)
+            )
+            await ctx.send(box(settings))
             await ctx.send_help()
 
     @bankset.command(name="toggleglobal")
diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py
--- a/redbot/core/core_commands.py
+++ b/redbot/core/core_commands.py
@@ -144,6 +144,15 @@ async def embedset(self, ctx: RedContext):
         use embeds.
         """
         if ctx.invoked_subcommand is None:
+            text = "Embed settings:\n\n"
+            global_default = await self.bot.db.embeds()
+            text += "Global default: {}\n".format(global_default)
+            if ctx.guild:
+                guild_setting = await self.bot.db.guild(ctx.guild).embeds()
+                text += "Guild setting: {}\n".format(guild_setting)
+            user_setting = await self.bot.db.user(ctx.author).embeds()
+            text += "User setting: {}".format(user_setting)
+            await ctx.send(box(text))
             await ctx.send_help()
 
     @embedset.command(name="global")
@@ -517,6 +526,27 @@ def maybe_reload(new_name):
     async def _set(self, ctx):
         """Changes Red's settings"""
         if ctx.invoked_subcommand is None:
+            admin_role_id = await ctx.bot.db.guild(ctx.guild).admin_role()
+            admin_role = discord.utils.get(ctx.guild.roles, id=admin_role_id)
+            mod_role_id = await ctx.bot.db.guild(ctx.guild).mod_role()
+            mod_role = discord.utils.get(ctx.guild.roles, id=mod_role_id)
+            prefixes = await ctx.bot.db.guild(ctx.guild).prefix()
+            if not prefixes:
+                prefixes = await ctx.bot.db.prefix()
+            locale = await ctx.bot.db.locale()
+
+            settings = (
+                "{} Settings:\n\n"
+                "Prefixes: {}\n"
+                "Admin role: {}\n"
+                "Mod role: {}\n"
+                "Locale: {}"
+                "".format(
+                    ctx.bot.user.name, " ".join(prefixes),
+                    admin_role.name, mod_role.name, locale
+                )
+            )
+            await ctx.send(box(settings))
             await ctx.send_help()
 
     @_set.command()


Test patch: