Fix twitter_modify

This commit is contained in:
Zeva Rose 2021-11-01 18:50:42 -06:00
parent 8ad287e766
commit eaa216c1db

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: