diff --git a/jarvis/cogs/twitter.py b/jarvis/cogs/twitter.py index f09b42e..8f67752 100644 --- a/jarvis/cogs/twitter.py +++ b/jarvis/cogs/twitter.py @@ -147,7 +147,7 @@ class TwitterCog(commands.Cog): return options = [] - handlemap = {x.id: x.handle for x in twitters} + handlemap = {str(x.id): x.handle for x in twitters} for twitter in twitters: option = create_select_option(label=twitter.handle, value=str(twitter.id)) options.append(option) @@ -220,7 +220,7 @@ class TwitterCog(commands.Cog): context = await wait_for_component( self.bot, check=lambda x: ctx.author.id == x.author.id, messages=message, timeout=60 * 5 ) - handlemap = {x.id: x.handle for x in twitters} + handlemap = {str(x.id): x.handle for x in twitters} for to_update in context.selected_options: t = Twitter.objects(guild=ctx.guild.id, id=ObjectId()).first() t.retweets = retweets