[V3 Admin] Remove guild default channel (#1381)

* Remove guild default channel

* Fix weird set thing
This commit is contained in:
Will 2018-03-05 17:52:26 -05:00 committed by Tobotimus
parent b4f5c2c0a1
commit 57b7db6956
2 changed files with 5 additions and 2 deletions

View File

@ -265,7 +265,7 @@ class Admin:
"""
if channel is None:
channel = ctx.channel
await self.conf.guild(ctx.guild).set("announce_channel", channel.id)
await self.conf.guild(ctx.guild).announce_channel.set(channel.id)
await ctx.send("The announcement channel has been set to {}".format(
channel.mention

View File

@ -43,7 +43,10 @@ class Announcer:
channel = guild.get_channel(channel_id)
if channel is None:
channel = guild.default_channel
channel = guild.system_channel
if channel is None:
channel = guild.text_channels[0]
return channel