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}
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.save()
for row in components: