fix(rmenus): Add guild filter for name check.

This commit is contained in:
2023-09-25 20:29:26 +03:00
parent 0fe7610289
commit 7867bdee50

View File

@@ -732,7 +732,7 @@ class RoleMenuCog(LionCog):
# Parse menu options if given
name = name.strip()
matching = await self.data.RoleMenu.fetch_where(name=name)
matching = await self.data.RoleMenu.fetch_where(name=name, guildid=ctx.guild.id)
if matching:
raise UserInputError(
t(_p(