forked from blizzthewolf/SeaCogs
fix(art): fixed artset list erroring if configs aren't set
This commit is contained in:
parent
48cd63c5d4
commit
13032fe184
1 changed files with 8 additions and 0 deletions
|
@ -65,4 +65,12 @@ class Art(commands.Cog):
|
||||||
"""List all settings."""
|
"""List all settings."""
|
||||||
art_channel = ctx.guild.get_channel(await self.config.guild(ctx.guild).art_channel())
|
art_channel = ctx.guild.get_channel(await self.config.guild(ctx.guild).art_channel())
|
||||||
art_submission_channel = ctx.guild.get_channel(await self.config.guild(ctx.guild).art_submission_channel())
|
art_submission_channel = ctx.guild.get_channel(await self.config.guild(ctx.guild).art_submission_channel())
|
||||||
|
if art_channel:
|
||||||
|
response_str = f"Art channel: {art_channel.mention}\n"
|
||||||
|
else:
|
||||||
|
response_str = "Art channel not set.\n"
|
||||||
|
if art_submission_channel:
|
||||||
|
response_str += f"Art submission channel: {art_submission_channel.mention}"
|
||||||
|
else:
|
||||||
|
response_str += "Art submission channel not set."
|
||||||
await ctx.send(f"Art channel: {art_channel.mention}\nArt submission channel: {art_submission_channel.mention}")
|
await ctx.send(f"Art channel: {art_channel.mention}\nArt submission channel: {art_submission_channel.mention}")
|
||||||
|
|
Loading…
Reference in a new issue