Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/revoltio/src/structures/GroupChannel.ts>GroupChannel

No-nonsense Revolt library for nodejs and deno.
Latest
class GroupChannel
implements TextBasedChannel
extends Channel
import { GroupChannel } from "https://deno.land/x/revoltio@v1.0.0/src/structures/GroupChannel.ts";

Constructors

new
GroupChannel(client: Client, data: APIGroupChannel)

Properties

description: string | null
icon: Attachment | null
readonly
lastMessage: Message | null
lastMessageId: string | null
messages: MessageManager
name: string
nsfw: boolean
readonly
owner: User | null
ownerId: string
permissions: Readonly<ChannelPermissions>
readonly
type
users: Collection<string, User>

Methods

protected
_patch(data: APIGroupChannel): this
add(user: UserResolvable): Promise<void>
bulkDelete(messages: MessageResolvable[] | Collection<string, Message> | number): Promise<void>
createInvite(): Promise<Invite>
iconURL(options?: { size: number; }): string | null
leave(): Promise<void>
remove(user: UserResolvable): Promise<void>
send(options: MessageOptions | string): Promise<Message>