DMChannel class Null safety
- Inheritance
- Object
- SnowflakeEntity
- IChannel
- DMChannel
- Implemented types
Properties
- channelType ↔ ChannelType
-
Type of this channel
read / write, final, late, inherited
- client → Nyxx
-
Reference to client
final, inherited
- createdAt → DateTime
-
Gets creation timestamp included in Snowflake
read-only, inherited
-
fileUploadLimit
→ Future<
int> -
File upload limit for channel in bytes.
read-only, override
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- id → Snowflake
-
ID of entity as Snowflake
final, inherited
- isGroupDM → bool
-
True if channel is group dm
read-only
- messageCache → MessageCache
-
A collection of messages sent to this channel.
final, late
- participant → User
-
Returns other user in chat if channel is not group dm. Will throw ArgumentError if channel is group dm.
read-only
-
participants
↔ Iterable<
User> -
List of participants in channel. If not group dm channel it will only return other user in chat.
read / write, final, late
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
bulkRemoveMessages(
Iterable< SnowflakeEntity> messages) → Future<void> -
Bulk removes many messages by its ids.
messages
is list of messages ids to delete. [...]override -
dispose(
) → Future< void> -
Perform cleanup
inherited
-
downloadMessages(
{int limit = 50, Snowflake? after, Snowflake? around, Snowflake? before}) → Stream< Message> -
Gets several Message objects from API. Only one of
after
,before
,around
can be specified, otherwise, it will throw. [...]override -
fetchMessage(
Snowflake messageId) → Future< Message> -
Returns Message downloaded from API
override
-
getMessage(
Snowflake id) → Future< Message?> -
Returns Message with given id from CACHE
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
sendMessage(
{dynamic content, EmbedBuilder? embed, List< AttachmentBuilder> ? files, bool? tts, AllowedMentions? allowedMentions, MessageBuilder? builder, ReplyBuilder? replyBuilder}) → Future<Message> -
Sends message to channel. Performs
toString()
on thing passed tocontent
. Allows to send embeds withembed
field. [...]override -
startTyping(
) → Future< void> -
Starts typing.
override
-
startTypingLoop(
) → void -
Loops
startTyping
untilstopTypingLoop
is called.override -
stopTypingLoop(
) → void -
Stops a typing loop if one is running.
override
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited