Merge branch 'twitter_update' into 'main'

Fix twitter_modify

See merge request stark-industries/j.a.r.v.i.s.!31
This commit is contained in:
Zeva Rose 2021-11-02 00:51:03 +00:00
commit f2e66df034

View file

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