aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar NipaDev <[email protected]>2021-11-05 12:49:20 +0200
committerGravatar GitHub <[email protected]>2021-11-05 10:49:20 +0000
commit726109fc47eec6259e6d8f8291b330e3353809e4 (patch)
tree9bb7a78aca99c998b7752a9132f427ad9f559de0 /bot
parentAdd option to get specific amount of realpython articles (diff)
Limit user reactions on embed pagination
* Limit user reactions on embed pagination Limit user reactions to prevent non-author from removing message by adding user restriction to paginator. * Fixed the format of code to single line. Co-authored-by: ChrisJL <[email protected]>
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/utilities/wikipedia.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/exts/utilities/wikipedia.py b/bot/exts/utilities/wikipedia.py
index c5283de0..e5e8e289 100644
--- a/bot/exts/utilities/wikipedia.py
+++ b/bot/exts/utilities/wikipedia.py
@@ -86,9 +86,7 @@ class WikipediaSearch(commands.Cog):
)
embed.set_thumbnail(url=WIKI_THUMBNAIL)
embed.timestamp = datetime.utcnow()
- await LinePaginator.paginate(
- contents, ctx, embed
- )
+ await LinePaginator.paginate(contents, ctx, embed, restrict_to_user=ctx.author)
else:
await ctx.send(
"Sorry, we could not find a wikipedia article using that search term."