Merge branch 'twitter_update' into 'main'
Fix display bug (again) See merge request stark-industries/j.a.r.v.i.s.!32
This commit is contained in:
commit
7da3e730cb
1 changed files with 2 additions and 2 deletions
|
@ -147,7 +147,7 @@ class TwitterCog(commands.Cog):
|
||||||
return
|
return
|
||||||
|
|
||||||
options = []
|
options = []
|
||||||
handlemap = {x.id: x.handle for x in twitters}
|
handlemap = {str(x.id): x.handle for x in twitters}
|
||||||
for twitter in twitters:
|
for twitter in twitters:
|
||||||
option = create_select_option(label=twitter.handle, value=str(twitter.id))
|
option = create_select_option(label=twitter.handle, value=str(twitter.id))
|
||||||
options.append(option)
|
options.append(option)
|
||||||
|
@ -220,7 +220,7 @@ class TwitterCog(commands.Cog):
|
||||||
context = await wait_for_component(
|
context = await wait_for_component(
|
||||||
self.bot, check=lambda x: ctx.author.id == x.author.id, messages=message, timeout=60 * 5
|
self.bot, check=lambda x: ctx.author.id == x.author.id, messages=message, timeout=60 * 5
|
||||||
)
|
)
|
||||||
handlemap = {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()).first()
|
||||||
t.retweets = retweets
|
t.retweets = retweets
|
||||||
|
|
Loading…
Add table
Reference in a new issue