Merge branch 'twitter_update' into 'main'

Fix bug in twitter retweets

See merge request stark-industries/j.a.r.v.i.s.!33
This commit is contained in:
Zeva Rose 2021-11-02 01:47:47 +00:00
commit d8f035096d

View file

@ -222,7 +222,7 @@ class TwitterCog(commands.Cog):
) )
handlemap = {str(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: for to_update in context.selected_options:
t = Twitter.objects(guild=ctx.guild.id, id=ObjectId()).first() t = Twitter.objects(guild=ctx.guild.id, id=ObjectId(to_update)).first()
t.retweets = retweets t.retweets = retweets
t.save() t.save()
for row in components: for row in components: