Wumbot Helper Utilities¶
Function reference¶
-
isOwner
(user: discord.User) → bool¶ Return
True
if the inputdiscord.User
’s ID matches the bot owner’s ID, otherwise returnFalse
Owner ID is hardcoded
-
isDM
(channel: discord.TextChannel) → bool¶ Return
True
if the inputdiscord.TextChannel
is a DM, otherwise returnFalse
Note
A DM is an instance of either
discord.DMChannel
ordiscord.GroupChannel
-
isWumbologist
(member: discord.Member) → bool¶ Return
True
if the inputdiscord.Member
has the ‘Wumbologists’ role, otherwise returnFalse