Corrected saving a member
This commit is contained in:
parent
a0cfcd8c92
commit
c585d3068a
|
@ -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'],
|
||||
|
|
Loading…
Reference in a new issue