-
Notifications
You must be signed in to change notification settings - Fork 6
Channel
HimmelKreis4865 edited this page Jun 26, 2022
·
2 revisions
DM - Channels
DMChannelThe default dm channel between two usersDMGroupChannelA dm channel between three or more users
Guild - Channels
GuildCategoryChannelA parent of text / voice channelsGuildTextChannelThe basic text channel to write inGuildNewsChannelA text channel other servers can follow upGuildVoiceChannelThe basic voice channel to speak inGuildStageVoiceChannelA voice - event channel
TextChannel->fetchMessage(messageId: int): Completable(Message)Fetches a message by id
TextChannel->fetchMessages(SearchFilter): Completable(Message[])Fetches multiple messages by a specific search filter. Possible options:
SearchFilter->setAfter(messageId: int)
SearchFilter->setBefore(messageId: int)
SearchFilter->setAround(messageId: int)
SearchFilter->setLimit(int(1-100))Returns an array of all messages in format of messageId => Message
TextChannel->send(Senable): Completable(Message)Sends a message in the channel. Head over to Message Builder
MessageBuilder::build(content: string, tts: bool)This returns a MessageBuilder instance that you can use to further edit the message:
Add an Embed to a message:
MessageBuilder->addEmbed(Embed)Add an Attachment to a message:
MessageBuilder->addAttachment(Attachment)