Wumbot Helper Utilities¶
Function reference¶
-
isOwner(user: discord.User) → bool¶ Return
Trueif the inputdiscord.User’s ID matches the bot owner’s ID, otherwise returnFalseOwner ID is hardcoded
-
isDM(channel: discord.TextChannel) → bool¶ Return
Trueif the inputdiscord.TextChannelis a DM, otherwise returnFalseNote
A DM is an instance of either
discord.DMChannelordiscord.GroupChannel
-
isWumbologist(member: discord.Member) → bool¶ Return
Trueif the inputdiscord.Memberhas the ‘Wumbologists’ role, otherwise returnFalse