Commit c6c6222a authored by IS1_4M's avatar IS1_4M
Browse files

Fixed !describe bug

parent 8d698f21
......@@ -161,6 +161,7 @@ async def on_message(message):
'''
if content.startswith('!makeclub'):
clubName = content[len('!makeclub '):].upper()
clubName.replace(' ', '-')
clubs = list(ClubSuite.get_all_clubs(message.channel.guild))
# make sure we're not making a duplicate club
for i in range(len(clubs)):
......
......@@ -186,7 +186,7 @@ class ClubSuite(AbstractChanSuite):
elif content.startswith('!convenerhelp'):
await message.channel.send(ClubSuite.get_help_message(message.channel)); return True
elif content.startswith('!describe '):
for pin in message.channel.pins:
for pin in await message.channel.pins():
if pin.content.startswith("DESCRIPTION SET TO:"):
await pin.unpin()
await (await message.channel.send('DESCRIPTION SET TO: ' + content[len('!describe '):])).pin()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment