IDMChannel class Null safety
- Implemented types
Constructors
Properties
- channelType → ChannelType
-
Type of this channel
read-onlyinherited
- client → INyxx
-
Reference to client
read-onlyinherited
- createdAt → DateTime
-
Gets creation timestamp included in Snowflake
read-onlyinherited
-
fileUploadLimit
→ Future<
int> -
File upload limit for channel in bytes.
read-onlyoverride
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- id → Snowflake
-
ID of entity as Snowflake
finalinherited
- isGroupDM → bool
-
True if channel is group dm
read-only
-
messageCache
→ Map<
Snowflake, IMessage> -
A collection of messages sent to this channel.
read-onlyinherited
- participant → IUser
-
Returns other user in chat if channel is not group dm. Will throw ArgumentError if channel is group dm.
read-only
-
participants
→ Iterable<
IUser> -
List of participants in channel. If not group dm channel it will only return other user in chat.
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
bulkRemoveMessages(
Iterable< IMessage> messages) → Future<void> -
Bulk removes many referenced messages. Where
messages
is list of messages to delete.inherited -
delete(
) → Future< void> -
Deletes channel if guild channel or closes DM if DM channel
inherited
-
dispose(
) → Future< void> -
Perform cleanup
inherited
-
downloadMessages(
{int limit = 50, Snowflake? after, Snowflake? around, Snowflake? before}) → Stream< IMessage> -
Gets several
IMessage
objects from API.inherited -
fetchMessage(
Snowflake id) → Future< IMessage> -
Returns
IMessage
downloaded from APIinherited -
fetchPinnedMessages(
) → Stream< IMessage> -
Returns pinned
IMessage
s for channel.inherited -
getMessage(
Snowflake id) → IMessage? -
Returns
Message
with given id from CACHEinherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
sendMessage(
MessageBuilder builder) → Future< IMessage> -
Sends message to channel. Allows to send embeds with MessageBuilder.embed() method.
inherited
-
startTyping(
) → Future< void> -
Starts typing.
inherited
-
startTypingLoop(
) → void -
Loops
startTyping
untilstopTypingLoop
is called.inherited -
stopTypingLoop(
) → void -
Stops a typing loop if one is running.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator.
inherited