Add global buttons to base menus (#5683)

Co-authored-by: Kowlin <10947836+Kowlin@users.noreply.github.com>
This commit is contained in:
TrustyJAID
2022-10-12 14:13:33 -06:00
committed by GitHub
parent aaeb1b5daa
commit b0a3f00f41
4 changed files with 122 additions and 2 deletions

View File

@@ -142,6 +142,7 @@ class Red(
schema_version=0,
datarequests__allow_user_requests=True,
datarequests__user_requests_are_strict=True,
use_buttons=False,
)
self._config.register_guild(
@@ -1351,6 +1352,17 @@ class Red(
global_setting = await self._config.embeds()
return global_setting
async def use_buttons(self) -> bool:
"""
Determines whether the bot owner has enabled use of buttons instead of
reactions for basic menus.
Returns
-------
bool
"""
return await self._config.use_buttons()
async def is_owner(self, user: Union[discord.User, discord.Member], /) -> bool:
"""
Determines if the user should be considered a bot owner.