mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 01:12:33 -05:00
Add global buttons to base menus (#5683)
Co-authored-by: Kowlin <10947836+Kowlin@users.noreply.github.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user