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:
commit
d8f035096d
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue