ChannelAPI class
Constructors
-
ChannelAPI(DiscordHTTPClient _http)
-
const
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addPinnedMessage(String channelId, String messageId)
→ Future
-
-
bulkDeleteMessages(String channelId, {required List<String> messages})
→ Future
-
-
createInvite(String channelId, {int? maxAge, int? maxUses, bool? temporary, bool? unique, String? targetUser, String? targetUserType})
→ Future
-
-
createMessage(String channelId, {required String content, String? nonce, bool tts = false, Embed? embed, AllowedMentions? allowedMentions, MessageReference? messageReference})
→ Future<Message>
-
-
createReaction(String channelId, {required String messageId, required String emoji})
→ Future
-
-
crosspostMessage(String channelId, String messageId)
→ Future<Message>
-
-
delete(String channelId)
→ Future<Channel>
-
-
deleteAllReaction(String channelId, String messageId, {String? emoji})
→ Future
-
-
deleteMessage(String channelId, String messageId)
→ Future
-
-
deleteOwnReaction(String channelId, {required String messageId, required String emoji})
→ Future
-
-
deletePermission(String channelId, String overwriteId)
→ Future
-
-
deletePinnedMessage(String channelId, String messageId)
→ Future
-
-
deleteUserReaction(String channelId, {required String messageId, required String userId, required String emoji})
→ Future
-
-
editMessage(String channelId, {required String messageId, String? content, Embed? embed, int? flags, AllowedMentions? allowedMentions})
→ Future<Message>
-
-
editPermissions(String channelId, {required String overwriteId, required String allow, required String deny, required int type})
→ Future
-
-
followNewsChannel(String channelId, {required String webhookChannelId})
→ Future<FollowedChannel>
-
-
get(String channelId)
→ Future<Channel>
-
-
getInvites(String channelId)
→ Future<List<Invite>>
-
-
getMessage(String channelId, String messageId)
→ Future<Message>
-
-
getMessages(String channelId, {String? around, String? before, String? after, int? limit})
→ Future<List<Message>>
-
-
getPinnedMessages(String channelId)
→ Future<List<Message>>
-
-
getReactions(String channelId, {required String messageId, required String emoji})
→ Future<List<User>>
-
-
groupDMAddRecipient(String channelId, {required String userId, required String accessToken, required String nick})
→ Future
-
-
groupDMRemoveRecipient(String channelId, String userId)
→ Future
-
-
modify(String channelId, {String? name, int? type, int? position, String? topic, bool? nsfw, int? rateLimitPerUser, int? bitrate, int? userLimit, List<Overwrite>? permissionOverwrites, String? parentId})
→ Future<Channel>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
triggerTypingIndicator(String channelId)
→ Future
-