1
0
Fork 0
mirror of synced 2024-06-29 03:30:57 +12:00

Corrected saving a member

This commit is contained in:
phxntxm 2016-08-14 00:18:08 -05:00
parent a0cfcd8c92
commit c585d3068a

View file

@ -1,4 +1,5 @@
from discord.ext import commands
import discord
from .utils import config
from .utils import checks
@ -48,7 +49,7 @@ class Strawpoll:
fmt_options = "\n\t".join(
"{}: {}".format(r, data['votes'][i]) for i, r in enumerate(data['options']))
author = self.bot.get_member(poll['author'])
author = discord.utils.get(self.bot.get_all_members(), id=poll['author'])
created_ago = (pendulum.parse(poll['date']) - pendulum.utcnow()).in_words()
link = "https://strawpoll.me{}".format(str(poll_id))
fmt = "Link: {}\nTitle: {}\nAuthor: {}\nCreated: {}\nOptions:\n\t{}".format(link, data['title'],