diff --git a/package.json b/package.json index 207284c1..f80736f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stoat.js", - "version": "7.3.0", + "version": "7.3.1", "type": "module", "exports": { ".": "./lib/index.js" @@ -29,7 +29,7 @@ "@solid-primitives/map": "^0.7.1", "@solid-primitives/set": "^0.7.1", "@vladfrangu/async_event_emitter": "^2.4.6", - "revolt-api": "0.8.9", + "stoat-api": "0.8.9-3", "solid-js": "^1.9.6", "ulid": "^2.4.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2c4dd6f4..33dc9bfd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,12 +17,12 @@ importers: '@vladfrangu/async_event_emitter': specifier: ^2.4.6 version: 2.4.6 - revolt-api: - specifier: 0.8.9 - version: 0.8.9 solid-js: specifier: ^1.9.6 version: 1.9.6 + stoat-api: + specifier: 0.8.9-3 + version: 0.8.9-3 ulid: specifier: ^2.4.0 version: 2.4.0 @@ -905,9 +905,6 @@ packages: resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} - revolt-api@0.8.9: - resolution: {integrity: sha512-+VDJlgj/WBJvuTbkrmTUWjpCAU4DjN50akDdsDonZxy1Xx2eNXCzKDXhxof8wfOwhMU8HtXBFR5NgZvrBW6XZA==} - router@2.2.0: resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==} engines: {node: '>= 18'} @@ -978,6 +975,9 @@ packages: resolution: {integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==} engines: {node: '>= 0.8'} + stoat-api@0.8.9-3: + resolution: {integrity: sha512-cuw6+5HUQScBxjtA11bELCCBUaio2eESUfAZHYi9qj29VFlAalJ63GEZKF6U8h1UydqcQ7YNx/Q9TU5D/rWNhA==} + strip-json-comments@3.1.1: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} @@ -1965,8 +1965,6 @@ snapshots: reusify@1.1.0: {} - revolt-api@0.8.9: {} - router@2.2.0: dependencies: debug: 4.4.0 @@ -2062,6 +2060,8 @@ snapshots: statuses@2.0.1: {} + stoat-api@0.8.9-3: {} + strip-json-comments@3.1.1: {} style-to-object@1.0.8: diff --git a/src/Client.ts b/src/Client.ts index 134a5df7..34d8091e 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -2,8 +2,8 @@ import type { Accessor, Setter } from "solid-js"; import { batch, createSignal } from "solid-js"; import { AsyncEventEmitter } from "@vladfrangu/async_event_emitter"; -import { API } from "revolt-api"; -import type { DataLogin, RevoltConfig, Role } from "revolt-api"; +import { API } from "stoat-api"; +import type { DataLogin, RevoltConfig, Role } from "stoat-api"; import type { Channel } from "./classes/Channel.js"; import type { Emoji } from "./classes/Emoji.js"; diff --git a/src/classes/BannedUser.ts b/src/classes/BannedUser.ts index 4283cc71..30b86a5a 100644 --- a/src/classes/BannedUser.ts +++ b/src/classes/BannedUser.ts @@ -1,4 +1,4 @@ -import type { BannedUser as APIBannedUser } from "revolt-api"; +import type { BannedUser as APIBannedUser } from "stoat-api"; import type { Client } from "../Client.js"; diff --git a/src/classes/Bot.ts b/src/classes/Bot.ts index 9942a400..503adb12 100644 --- a/src/classes/Bot.ts +++ b/src/classes/Bot.ts @@ -1,4 +1,4 @@ -import type { DataEditBot } from "revolt-api"; +import type { DataEditBot } from "stoat-api"; import { decodeTime } from "ulid"; import type { BotCollection } from "../collections/BotCollection.js"; diff --git a/src/classes/Channel.ts b/src/classes/Channel.ts index b791aaa1..e4ac8a42 100644 --- a/src/classes/Channel.ts +++ b/src/classes/Channel.ts @@ -11,8 +11,8 @@ import type { DataMessageSend, Invite, Override, -} from "revolt-api"; -import type { APIRoutes } from "revolt-api/lib/routes"; +} from "stoat-api"; +import type { APIRoutes } from "stoat-api/lib/routes"; import { decodeTime, ulid } from "ulid"; import { ChannelCollection } from "../collections/index.js"; @@ -291,7 +291,6 @@ export class Channel { if ( !this.lastMessageId || this.type === "SavedMessages" || - this.type === "VoiceChannel" || this.#collection.client.options.channelExclusiveMuted(this) ) return false; @@ -314,7 +313,7 @@ export class Channel { * Get mentions in this channel for user. */ get mentions(): ReactiveSet | undefined { - if (this.type === "SavedMessages" || this.type === "VoiceChannel") + if (this.type === "SavedMessages") return undefined; return this.#collection.client.channelUnreads.get(this.id) @@ -473,7 +472,7 @@ export class Channel { /** * Delete or leave a channel * @param leaveSilently Whether to not send a message on leave - * @requires `DirectMessage`, `Group`, `TextChannel`, `VoiceChannel` + * @requires `DirectMessage`, `Group`, `TextChannel` */ async delete(leaveSilently?: boolean): Promise { await this.#collection.client.api.delete(`/channels/${this.id as ""}`, { @@ -694,7 +693,7 @@ export class Channel { /** * Create an invite to the channel - * @requires `TextChannel`, `VoiceChannel` + * @requires `TextChannel` * @returns Newly created invite code */ async createInvite(): Promise { @@ -780,7 +779,7 @@ export class Channel { * Set role permissions * @param role_id Role Id, set to 'default' to affect all users * @param permissions Permission value - * @requires `Group`, `TextChannel`, `VoiceChannel` + * @requires `Group`, `TextChannel` */ async setPermissions( role_id = "default", diff --git a/src/classes/ChannelWebhook.ts b/src/classes/ChannelWebhook.ts index fee8e17c..2aa5b56a 100644 --- a/src/classes/ChannelWebhook.ts +++ b/src/classes/ChannelWebhook.ts @@ -1,4 +1,4 @@ -import { DataEditWebhook } from "revolt-api"; +import { DataEditWebhook } from "stoat-api"; import type { ChannelWebhookCollection } from "../collections/ChannelWebhookCollection.js"; import { hydrate } from "../hydration/index.js"; diff --git a/src/classes/Emoji.ts b/src/classes/Emoji.ts index efbcec47..e5bf66a5 100644 --- a/src/classes/Emoji.ts +++ b/src/classes/Emoji.ts @@ -1,4 +1,4 @@ -import type { EmojiParent } from "revolt-api"; +import type { EmojiParent } from "stoat-api"; import { decodeTime } from "ulid"; import type { EmojiCollection } from "../collections/EmojiCollection.js"; diff --git a/src/classes/File.ts b/src/classes/File.ts index fd3fb652..cf1e25d2 100644 --- a/src/classes/File.ts +++ b/src/classes/File.ts @@ -1,4 +1,4 @@ -import type { File as APIFile, Metadata } from "revolt-api"; +import type { File as APIFile, Metadata } from "stoat-api"; import type { Client } from "../Client.js"; diff --git a/src/classes/Invite.ts b/src/classes/Invite.ts index 6fc03161..4e579348 100644 --- a/src/classes/Invite.ts +++ b/src/classes/Invite.ts @@ -1,4 +1,4 @@ -import type { Invite } from "revolt-api"; +import type { Invite } from "stoat-api"; import type { Client } from "../Client.js"; diff --git a/src/classes/MFA.ts b/src/classes/MFA.ts index 72255332..f916b4ff 100644 --- a/src/classes/MFA.ts +++ b/src/classes/MFA.ts @@ -6,7 +6,7 @@ import type { MFAResponse, MultiFactorStatus, MFATicket as TicketType, -} from "revolt-api"; +} from "stoat-api"; import type { Client } from "../Client.js"; diff --git a/src/classes/Message.ts b/src/classes/Message.ts index a6f1a8f3..0d8b6bc5 100644 --- a/src/classes/Message.ts +++ b/src/classes/Message.ts @@ -6,7 +6,7 @@ import type { DataEditMessage, DataMessageSend, Masquerade, -} from "revolt-api"; +} from "stoat-api"; import { decodeTime } from "ulid"; import type { Client } from "../Client.js"; diff --git a/src/classes/MessageEmbed.ts b/src/classes/MessageEmbed.ts index 5b6b77c9..800f4a12 100644 --- a/src/classes/MessageEmbed.ts +++ b/src/classes/MessageEmbed.ts @@ -1,4 +1,4 @@ -import type { Embed, ImageSize, Special } from "revolt-api"; +import type { Embed, ImageSize, Special } from "stoat-api"; import type { Client } from "../Client.js"; diff --git a/src/classes/PublicBot.ts b/src/classes/PublicBot.ts index 3653d3f9..ef9b0c1f 100644 --- a/src/classes/PublicBot.ts +++ b/src/classes/PublicBot.ts @@ -1,4 +1,4 @@ -import type { File as APIFile, PublicBot as APIPublicBot } from "revolt-api"; +import type { File as APIFile, PublicBot as APIPublicBot } from "stoat-api"; import type { Client } from "../Client.js"; diff --git a/src/classes/PublicInvite.ts b/src/classes/PublicInvite.ts index da3aac40..f64cd632 100644 --- a/src/classes/PublicInvite.ts +++ b/src/classes/PublicInvite.ts @@ -1,6 +1,6 @@ import { batch } from "solid-js"; -import type { Invite, InviteResponse } from "revolt-api"; +import type { Invite, InviteResponse } from "stoat-api"; import type { Client } from "../Client.js"; import type { ServerFlags } from "../hydration/server.js"; diff --git a/src/classes/Server.ts b/src/classes/Server.ts index 82567057..eba16cb5 100644 --- a/src/classes/Server.ts +++ b/src/classes/Server.ts @@ -15,7 +15,7 @@ import type { Override, OverrideField, Role, -} from "revolt-api"; +} from "stoat-api"; import { decodeTime } from "ulid"; import type { ServerCollection } from "../collections/ServerCollection.js"; diff --git a/src/classes/ServerBan.ts b/src/classes/ServerBan.ts index 807f15a5..f2150596 100644 --- a/src/classes/ServerBan.ts +++ b/src/classes/ServerBan.ts @@ -2,7 +2,7 @@ import type { BannedUser as APIBannedUser, ServerBan as APIServerBan, MemberCompositeKey, -} from "revolt-api"; +} from "stoat-api"; import type { Client } from "../Client.js"; diff --git a/src/classes/ServerMember.ts b/src/classes/ServerMember.ts index ec4d2559..14796d26 100644 --- a/src/classes/ServerMember.ts +++ b/src/classes/ServerMember.ts @@ -3,7 +3,7 @@ import type { DataMemberEdit, MemberCompositeKey, Role, -} from "revolt-api"; +} from "stoat-api"; import type { ServerMemberCollection } from "../collections/ServerMemberCollection.js"; import { diff --git a/src/classes/ServerRole.ts b/src/classes/ServerRole.ts index d1fa8b39..7447fbc6 100644 --- a/src/classes/ServerRole.ts +++ b/src/classes/ServerRole.ts @@ -1,4 +1,4 @@ -import type { Role as APIRole, OverrideField } from "revolt-api"; +import type { Role as APIRole, OverrideField } from "stoat-api"; import type { Client } from "../Client.js"; diff --git a/src/classes/SystemMessage.ts b/src/classes/SystemMessage.ts index 922a2ce4..4b053344 100644 --- a/src/classes/SystemMessage.ts +++ b/src/classes/SystemMessage.ts @@ -1,4 +1,4 @@ -import type { SystemMessage as APISystemMessage } from "revolt-api"; +import type { SystemMessage as APISystemMessage } from "stoat-api"; import type { Client } from "../Client.js"; diff --git a/src/classes/User.ts b/src/classes/User.ts index 2ce6cee9..296650f5 100644 --- a/src/classes/User.ts +++ b/src/classes/User.ts @@ -1,4 +1,4 @@ -import type { User as APIUser, DataEditUser, Presence } from "revolt-api"; +import type { User as APIUser, DataEditUser, Presence } from "stoat-api"; import { decodeTime } from "ulid"; import type { UserCollection } from "../collections/UserCollection.js"; diff --git a/src/classes/UserProfile.ts b/src/classes/UserProfile.ts index a2a2b7b1..06d7cd85 100644 --- a/src/classes/UserProfile.ts +++ b/src/classes/UserProfile.ts @@ -1,4 +1,4 @@ -import type { UserProfile as APIUserProfile } from "revolt-api"; +import type { UserProfile as APIUserProfile } from "stoat-api"; import type { Client } from "../Client.js"; diff --git a/src/collections/AccountCollection.ts b/src/collections/AccountCollection.ts index 1f49675e..b695a355 100644 --- a/src/collections/AccountCollection.ts +++ b/src/collections/AccountCollection.ts @@ -1,4 +1,4 @@ -import type { DataCreateAccount, WebPushSubscription } from "revolt-api"; +import type { DataCreateAccount, WebPushSubscription } from "stoat-api"; import type { Client } from "../Client.js"; import { MFA } from "../classes/MFA.js"; diff --git a/src/collections/BotCollection.ts b/src/collections/BotCollection.ts index 2b0e2ff5..ba3f62a1 100644 --- a/src/collections/BotCollection.ts +++ b/src/collections/BotCollection.ts @@ -1,6 +1,6 @@ import { batch } from "solid-js"; -import type { Bot as APIBot, OwnedBotsResponse } from "revolt-api"; +import type { Bot as APIBot, OwnedBotsResponse } from "stoat-api"; import { Bot } from "../classes/Bot.js"; import { PublicBot } from "../classes/PublicBot.js"; diff --git a/src/collections/ChannelCollection.ts b/src/collections/ChannelCollection.ts index 407f5359..a3ba4747 100644 --- a/src/collections/ChannelCollection.ts +++ b/src/collections/ChannelCollection.ts @@ -1,4 +1,4 @@ -import type { Channel as APIChannel } from "revolt-api"; +import type { Channel as APIChannel } from "stoat-api"; import { Channel } from "../classes/Channel.js"; import { User } from "../classes/User.js"; diff --git a/src/collections/ChannelUnreadCollection.ts b/src/collections/ChannelUnreadCollection.ts index c783ccf7..280555b8 100644 --- a/src/collections/ChannelUnreadCollection.ts +++ b/src/collections/ChannelUnreadCollection.ts @@ -1,6 +1,6 @@ import { batch } from "solid-js"; -import type { ChannelUnread as APIChannelUnread } from "revolt-api"; +import type { ChannelUnread as APIChannelUnread } from "stoat-api"; import { ChannelUnread } from "../classes/ChannelUnread.js"; import { Channel } from "../classes/index.js"; diff --git a/src/collections/ChannelWebhookCollection.ts b/src/collections/ChannelWebhookCollection.ts index 3d1d9e13..2fcee225 100644 --- a/src/collections/ChannelWebhookCollection.ts +++ b/src/collections/ChannelWebhookCollection.ts @@ -1,4 +1,4 @@ -import type { Webhook } from "revolt-api"; +import type { Webhook } from "stoat-api"; import { ChannelWebhook } from "../classes/ChannelWebhook.js"; import type { HydratedChannelWebhook } from "../hydration/channelWebhook.js"; diff --git a/src/collections/EmojiCollection.ts b/src/collections/EmojiCollection.ts index eb700f54..906516b8 100644 --- a/src/collections/EmojiCollection.ts +++ b/src/collections/EmojiCollection.ts @@ -1,4 +1,4 @@ -import type { Emoji as APIEmoji } from "revolt-api"; +import type { Emoji as APIEmoji } from "stoat-api"; import { Emoji } from "../classes/Emoji.js"; import type { HydratedEmoji } from "../hydration/emoji.js"; diff --git a/src/collections/MessageCollection.ts b/src/collections/MessageCollection.ts index efd351de..55210113 100644 --- a/src/collections/MessageCollection.ts +++ b/src/collections/MessageCollection.ts @@ -1,4 +1,4 @@ -import type { Message as APIMessage } from "revolt-api"; +import type { Message as APIMessage } from "stoat-api"; import { Message } from "../classes/Message.js"; import type { HydratedMessage } from "../hydration/message.js"; diff --git a/src/collections/ServerCollection.ts b/src/collections/ServerCollection.ts index e7c30c0e..819f5691 100644 --- a/src/collections/ServerCollection.ts +++ b/src/collections/ServerCollection.ts @@ -4,7 +4,7 @@ import type { Server as APIServer, Channel, DataCreateServer, -} from "revolt-api"; +} from "stoat-api"; import { Server } from "../classes/Server.js"; import type { HydratedServer } from "../hydration/server.js"; diff --git a/src/collections/ServerMemberCollection.ts b/src/collections/ServerMemberCollection.ts index d421c2b8..a559979d 100644 --- a/src/collections/ServerMemberCollection.ts +++ b/src/collections/ServerMemberCollection.ts @@ -1,4 +1,4 @@ -import type { Member, MemberCompositeKey } from "revolt-api"; +import type { Member, MemberCompositeKey } from "stoat-api"; import { ServerMember } from "../classes/ServerMember.js"; import type { HydratedServerMember } from "../hydration/serverMember.js"; diff --git a/src/collections/SessionCollection.ts b/src/collections/SessionCollection.ts index 59274b98..acae155c 100644 --- a/src/collections/SessionCollection.ts +++ b/src/collections/SessionCollection.ts @@ -1,6 +1,6 @@ import { batch } from "solid-js"; -import type { SessionInfo } from "revolt-api"; +import type { SessionInfo } from "stoat-api"; import { Session } from "../classes/Session.js"; import type { HydratedSession } from "../hydration/session.js"; diff --git a/src/collections/UserCollection.ts b/src/collections/UserCollection.ts index 4ae2c23e..a5e70740 100644 --- a/src/collections/UserCollection.ts +++ b/src/collections/UserCollection.ts @@ -1,4 +1,4 @@ -import type { User as APIUser } from "revolt-api"; +import type { User as APIUser } from "stoat-api"; import type { Client } from "../Client.js"; import { User } from "../classes/User.js"; diff --git a/src/events/EventClient.ts b/src/events/EventClient.ts index f9b9fced..8b8f288c 100644 --- a/src/events/EventClient.ts +++ b/src/events/EventClient.ts @@ -2,7 +2,7 @@ import type { Accessor, Setter } from "solid-js"; import { createSignal } from "solid-js"; import { AsyncEventEmitter } from "@vladfrangu/async_event_emitter"; -import type { Error } from "revolt-api"; +import type { Error } from "stoat-api"; import type { ProtocolV1 } from "./v1.js"; diff --git a/src/events/v1.ts b/src/events/v1.ts index 1764bb6e..6d20c087 100644 --- a/src/events/v1.ts +++ b/src/events/v1.ts @@ -17,7 +17,7 @@ import type { Role, Server, User, -} from "revolt-api"; +} from "stoat-api"; import type { Client } from "../Client.js"; import { MessageEmbed } from "../classes/MessageEmbed.js"; diff --git a/src/hydration/bot.ts b/src/hydration/bot.ts index 663d49a8..99fbe2e6 100644 --- a/src/hydration/bot.ts +++ b/src/hydration/bot.ts @@ -1,4 +1,4 @@ -import type { Bot as APIBot } from "revolt-api"; +import type { Bot as APIBot } from "stoat-api"; import type { Hydrate } from "./index.js"; @@ -41,4 +41,4 @@ export const botHydration: Hydrate = { /** * Flags attributed to users */ -export enum BotFlags {} +export enum BotFlags { } diff --git a/src/hydration/channel.ts b/src/hydration/channel.ts index 6a861948..c0e18ea6 100644 --- a/src/hydration/channel.ts +++ b/src/hydration/channel.ts @@ -1,5 +1,5 @@ import { ReactiveSet } from "@solid-primitives/set"; -import type { Channel as APIChannel, OverrideField } from "revolt-api"; +import type { Channel as APIChannel, OverrideField } from "stoat-api"; import type { Client } from "../Client.js"; import { File } from "../classes/File.js"; diff --git a/src/hydration/channelUnread.ts b/src/hydration/channelUnread.ts index b30f503c..c5e2643f 100644 --- a/src/hydration/channelUnread.ts +++ b/src/hydration/channelUnread.ts @@ -1,5 +1,5 @@ import { ReactiveSet } from "@solid-primitives/set"; -import type { ChannelUnread } from "revolt-api"; +import type { ChannelUnread } from "stoat-api"; import type { Merge } from "../lib/merge.js"; diff --git a/src/hydration/channelWebhook.ts b/src/hydration/channelWebhook.ts index ecf3abfb..654a8c00 100644 --- a/src/hydration/channelWebhook.ts +++ b/src/hydration/channelWebhook.ts @@ -1,4 +1,4 @@ -import type { Webhook } from "revolt-api"; +import type { Webhook } from "stoat-api"; import type { Client } from "../Client.js"; import { File } from "../classes/File.js"; diff --git a/src/hydration/emoji.ts b/src/hydration/emoji.ts index 90e0564f..634cedb9 100644 --- a/src/hydration/emoji.ts +++ b/src/hydration/emoji.ts @@ -1,4 +1,4 @@ -import type { Emoji as APIEmoji, EmojiParent } from "revolt-api"; +import type { Emoji as APIEmoji, EmojiParent } from "stoat-api"; import type { Merge } from "../lib/merge.js"; diff --git a/src/hydration/message.ts b/src/hydration/message.ts index 6c454bfa..81e3a6d6 100644 --- a/src/hydration/message.ts +++ b/src/hydration/message.ts @@ -1,6 +1,6 @@ import { ReactiveMap } from "@solid-primitives/map"; import { ReactiveSet } from "@solid-primitives/set"; -import type { Interactions, Masquerade, Message } from "revolt-api"; +import type { Interactions, Masquerade, Message } from "stoat-api"; import type { Client } from "../Client.js"; import { File } from "../classes/File.js"; diff --git a/src/hydration/server.ts b/src/hydration/server.ts index acc66633..e5128ad6 100644 --- a/src/hydration/server.ts +++ b/src/hydration/server.ts @@ -4,7 +4,7 @@ import type { Server as APIServer, Category, SystemMessageChannels, -} from "revolt-api"; +} from "stoat-api"; import type { Client } from "../Client.js"; import { File } from "../classes/File.js"; diff --git a/src/hydration/serverMember.ts b/src/hydration/serverMember.ts index ce3137ae..cfb230a7 100644 --- a/src/hydration/serverMember.ts +++ b/src/hydration/serverMember.ts @@ -1,4 +1,4 @@ -import type { Member as APIMember, MemberCompositeKey } from "revolt-api"; +import type { Member as APIMember, MemberCompositeKey } from "stoat-api"; import type { Client } from "../Client.js"; import { File } from "../classes/File.js"; diff --git a/src/hydration/session.ts b/src/hydration/session.ts index d16221e4..4d975c15 100644 --- a/src/hydration/session.ts +++ b/src/hydration/session.ts @@ -1,4 +1,4 @@ -import type { SessionInfo as APISession } from "revolt-api"; +import type { SessionInfo as APISession } from "stoat-api"; import type { Hydrate } from "./index.js"; diff --git a/src/hydration/user.ts b/src/hydration/user.ts index 952b5290..c7f2e50c 100644 --- a/src/hydration/user.ts +++ b/src/hydration/user.ts @@ -3,7 +3,7 @@ import type { BotInformation, RelationshipStatus, UserStatus, -} from "revolt-api"; +} from "stoat-api"; import type { Client } from "../Client.js"; import { File } from "../classes/File.js"; diff --git a/src/index.ts b/src/index.ts index 6c32bbd1..a8cd6c01 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -export * as API from "revolt-api"; +export * as API from "stoat-api"; export { Client } from "./Client.js"; export type { ClientOptions, Session as PrivateSession } from "./Client.js"; export * from "./classes/index.js"; diff --git a/src/permissions/calculator.ts b/src/permissions/calculator.ts index 2daab6ef..914bb851 100644 --- a/src/permissions/calculator.ts +++ b/src/permissions/calculator.ts @@ -99,8 +99,7 @@ export function calculatePermission( return target.permissions ?? DEFAULT_PERMISSION_DIRECT_MESSAGE; } } - case "TextChannel": - case "VoiceChannel": { + case "TextChannel": { // 2. Get server. const server = target.server; if (typeof server === "undefined") return 0;