Include vendored menus update for guild attribute (#6139)

This commit is contained in:
Ben Armstrong 2023-05-10 12:11:20 -03:00 committed by GitHub
parent 41d89c7b54
commit 66fe981ea8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -702,7 +702,7 @@ class Menu(metaclass=_MenuMeta):
self.ctx = ctx
self._author_id = ctx.author.id
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)
self.__me = discord.Object(id=me.id)
self._verify_permissions(ctx, channel, permissions)