import * as amethyst from "https://deno.land/x/amethyst@v7.0.0/mod.ts";
Classes
A class to create embed easily | |
Functions
Checks if the bot has these permissions f0r the given channel | |
Checks if the bot has these permissions in the given guild | |
Calculates the permissions this member has in the given guild | |
Calculates the permissions this member has for the given Channel | |
Checks if a channel overwrite for a user id or a role id has permission in this channel | |
Clears all running tasks | |
It creates a context object for a command | |
Create a custom inhibitor | |
It takes an array of options, and an object containing a message or interaction, and returns an object containing functions to get the values of the options | |
Create a task. | |
Delete an unwanted inhibitor | |
It takes a bot and returns a bot with the Amethyst plugin enabled. | |
Get the missing Channel permissions this member has | |
Get the missing Guild permissions this member has | |
Checks if the given member has these permissions for the given channel | |
Checks if the given member has these permissions in the given guild | |
Checks if the first role is higher than the second role | |
Gets the highest role from the member in this guild | |
Checks if the member has a higher position than the given role | |
Returns the permissions that are not in the given permissionBits | |
Throws an error if the bot has not all of the given channel permissions | |
Throws an error if the bot does not have all permissions | |
Throws an error if this member has not all of the given permissions | |
Throws an error if this member has not all of the given permissions | |
Internal function to check if the bot has the permissions to set these overwrites | |
Checks if the given permission bits are matching the given permissions. |
Interfaces
Separate interface for the constructor so that emitted js does not have a constructor that overwrites itself | |
The task that will be running through an interval | |
Type Aliases
An extended version of BotWithCache with a command handler and extra utils | |
T Keep | |
Represents an immutable version of a AmethystCollection | |