mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Include vendored menus update for guild attribute (#6139)
This commit is contained in:
parent
41d89c7b54
commit
66fe981ea8
@ -702,7 +702,7 @@ class Menu(metaclass=_MenuMeta):
|
|||||||
self.ctx = ctx
|
self.ctx = ctx
|
||||||
self._author_id = ctx.author.id
|
self._author_id = ctx.author.id
|
||||||
channel = channel or ctx.channel
|
channel = channel or ctx.channel
|
||||||
me = channel.guild.me if hasattr(channel, 'guild') else ctx.bot.user
|
me = channel.guild.me if getattr(channel, 'guild', None) else ctx.bot.user
|
||||||
permissions = channel.permissions_for(me)
|
permissions = channel.permissions_for(me)
|
||||||
self.__me = discord.Object(id=me.id)
|
self.__me = discord.Object(id=me.id)
|
||||||
self._verify_permissions(ctx, channel, permissions)
|
self._verify_permissions(ctx, channel, permissions)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user