rename to mod.ts

This commit is contained in:
Skillz
2020-12-26 19:30:32 -05:00
parent 0cfdb5fd43
commit 189dc150f2
29 changed files with 46 additions and 46 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ import {
Permissions,
RawOverwrite,
WebhookPayload,
} from "../../types/types.ts";
} from "../../types/mod.ts";
import { endpoints } from "../../util/constants.ts";
import {
botHasChannelPermissions,
+3 -3
View File
@@ -31,7 +31,7 @@ import {
RoleData,
UpdateGuildPayload,
UserPayload,
} from "../../types/types.ts";
} from "../../types/mod.ts";
import { Collection } from "../../util/collection.ts";
import { endpoints } from "../../util/constants.ts";
import { botHasPermission, calculateBits } from "../../util/permissions.ts";
@@ -416,9 +416,9 @@ export async function pruneMembers(guildID: string, options: PruneOptions) {
);
}
/**
/**
* ⚠️ BEGINNER DEVS!! YOU SHOULD ALMOST NEVER NEED THIS AND YOU CAN GET FROM cache.members.get()
*
*
* ADVANCED:
* Highly recommended to use this function to fetch members instead of getMember from REST.
* REST: 50/s global(across all shards) rate limit with ALL requests this included
+1 -1
View File
@@ -7,7 +7,7 @@ import {
ImageFormats,
ImageSize,
MessageContent,
} from "../../types/types.ts";
} from "../../types/mod.ts";
import { endpoints } from "../../util/constants.ts";
import {
botHasPermission,
+1 -1
View File
@@ -5,7 +5,7 @@ import {
MessageContent,
MessageCreateOptions,
UserPayload,
} from "../../types/types.ts";
} from "../../types/mod.ts";
import { endpoints } from "../../util/constants.ts";
import { botHasChannelPermissions } from "../../util/permissions.ts";
import { delay } from "../../util/utils.ts";
+3 -3
View File
@@ -12,7 +12,7 @@ import {
UpsertSlashCommandOptions,
WebhookCreateOptions,
WebhookPayload,
} from "../../types/types.ts";
} from "../../types/mod.ts";
import { cache } from "../../util/cache.ts";
import { endpoints } from "../../util/constants.ts";
import { botHasChannelPermissions } from "../../util/permissions.ts";
@@ -186,7 +186,7 @@ export function deleteWebhookMessage(
* - Your app **cannot** have two guild commands within the same name **on the same guild**
* - Your app **can** have a global and guild command with the same name
* - Multiple apps **can** have commands with the same names
*
*
* Global commands are cached for **1 hour**. That means that new global commands will fan out slowly across all guilds, and will be guaranteed to be updated in an hour.
* Guild commands update **instantly**. We recommend you use guild commands for quick testing, and global commands when they're ready for public use.
*/
@@ -257,7 +257,7 @@ export function deleteSlashCommand(id: string, guildID?: string) {
/**
* Send a response to a users slash command. The command data will have the id and token necessary to respond.
* Interaction `tokens` are valid for **15 minutes** and can be used to send followup messages.
*
*
* NOTE: By default we will suppress mentions. To enable mentions, just pass any mentions object.
*/
export function executeSlashCommand(