IHttpEndpoints class Null safety

Constructors

IHttpEndpoints()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addRoleToUser(Snowflake guildId, Snowflake roleId, Snowflake userId, {String? auditReason}) Future<void>
bulkRemoveMessages(Snowflake channelId, Iterable<SnowflakeEntity> messagesIds) Future<void>
changeGuildOwner(Snowflake guildId, SnowflakeEntity member, {String? auditReason}) Future<Guild>
changeGuildSelfNick(Snowflake guildId, String nick) Future<void>
createDMChannel(Snowflake userId) Future<DMChannel>
createEmoji(Snowflake guildId, String name, {List<SnowflakeEntity>? roles, File? imageFile, List<int>? imageBytes, String? encodedImage, String? encodedExtension}) Future<GuildEmoji>
createGuildChannel(Snowflake guildId, ChannelBuilder channelBuilder) Future<IChannel>
createGuildRole(Snowflake guildId, RoleBuilder roleBuilder, {String? auditReason}) Future<Role>
createInvite(Snowflake channelId, {int? maxAge, int? maxUses, bool? temporary, bool? unique, String? auditReason}) Future<Invite>
createMessageReaction(Snowflake channelId, Snowflake messageId, IEmoji emoji) Future<void>
createWebhook(Snowflake channelId, String name, {File? avatarFile, List<int>? avatarBytes, String? encodedAvatar, String? encodedExtension, String? auditReason}) Future<Webhook>
crossPostGuildMessage(Snowflake channelId, Snowflake messageId) Future<void>
deleteChannelPermission(Snowflake channelId, SnowflakeEntity id, {String? auditReason}) Future<void>
deleteGuild(Snowflake guildId) Future<void>
deleteGuildEmoji(Snowflake guildId, Snowflake emojiId) Future<void>
deleteInvite(String code, {String? auditReason}) Future<void>
deleteMessage(Snowflake channelId, Snowflake messageId, {String? auditReason}) Future<void>
deleteMessageAllReactions(Snowflake channelId, Snowflake messageId) Future<void>
deleteMessageReaction(Snowflake channelId, Snowflake messageId, IEmoji emoji) Future<void>
deleteMessageUserReaction(Snowflake channelId, Snowflake messageId, IEmoji emoji, Snowflake userId) Future<void>
deleteRole(Snowflake guildId, Snowflake roleId, {String? auditReason}) Future<void>
deleteWebhook(Snowflake id, {String token = "", String? auditReason}) Future<void>
downloadMessages(Snowflake channelId, {int limit = 50, Snowflake? after, Snowflake? before, Snowflake? around}) Stream<Message>
editChannelPermissionOverrides(Snowflake channelId, PermissionOverrideBuilder permissionBuilder, {String? auditReason}) Future<void>
editChannelPermissions(Snowflake channelId, PermissionsBuilder perms, SnowflakeEntity entity, {String? auditReason}) Future<void>
editGuild(Snowflake guildId, {String? name, int? verificationLevel, int? notificationLevel, SnowflakeEntity? afkChannel, int? afkTimeout, String? icon, String? auditReason}) Future<Guild>
editGuildEmoji(Snowflake guildId, Snowflake emojiId, {String? name, List<Snowflake>? roles, File? avatar, String? encodedAvatar, List<int>? avatarBytes, String? encodedExtension}) Future<GuildEmoji>
Allows to modify guild emoji.
editGuildMember(Snowflake guildId, Snowflake memberId, {String? nick, List<SnowflakeEntity>? roles, bool? mute, bool? deaf, SnowflakeEntity? channel, String? auditReason}) Future<void>
editMessage(Snowflake channelId, Snowflake messageId, {dynamic content, EmbedBuilder? embed, AllowedMentions? allowedMentions, MessageEditBuilder? builder}) Future<Message>
editRole(Snowflake guildId, Snowflake roleId, RoleBuilder role, {String? auditReason}) Future<Role>
editSelfUser({String? username, File? avatarFile, List<int>? avatarBytes, String? encodedAvatar, String? encodedExtension}) Future<User>
editTextChannel(Snowflake channelId, {String? name, String? topic, int? position, int? slowModeThreshold}) Future<TextGuildChannel>
editVoiceChannel(Snowflake channelId, {String? name, int? bitrate, int? position, int? userLimit, String? auditReason}) Future<VoiceGuildChannel>
editWebhook(Snowflake webhookId, {String token = "", String? name, SnowflakeEntity? channel, File? avatarFile, List<int>? avatarBytes, String? encodedAvatar, String? encodedExtension, String? auditReason}) Future<Webhook>
emojiUrl(Snowflake emojiId) String
executeWebhook(Snowflake webhookId, {String token = "", dynamic content, List<AttachmentBuilder>? files, List<EmbedBuilder>? embeds, bool? tts, AllowedMentions? allowedMentions, bool? wait, String? avatarUrl}) Future<Message>
fetchAuditLogs(Snowflake guildId, {Snowflake? userId, int? actionType, Snowflake? before, int? limit}) Future<AuditLog>
fetchChannel<T>(Snowflake id) Future<T>
fetchChannelInvites(Snowflake channelId) Stream<InviteWithMeta>
fetchChannelWebhooks(Snowflake channelId) Stream<Webhook>
fetchGuild(Snowflake guildId) Future<Guild>
fetchGuildEmoji(Snowflake guildId, Snowflake emojiId) Future<IGuildEmoji>
fetchGuildInvites(Snowflake guildId) Stream<Invite>
fetchGuildMember(Snowflake guildId, Snowflake memberId) Future<Member>
fetchGuildMembers(Snowflake guildId, {int limit = 1, Snowflake? after}) Stream<Member>
fetchGuildPreview(Snowflake guildId) Future<GuildPreview>
fetchGuildRoles(Snowflake guildId) Stream<Role>
fetchGuildVoiceRegions(Snowflake guildId) Stream<VoiceRegion>
fetchInvite(String code) Future<Invite>
fetchMessage(Snowflake channelId, Snowflake messageId) Future<Message>
fetchPinnedMessages(Snowflake channelId) Stream<Message>
fetchUser(Snowflake userId) Future<User>
fetchWebhook(Snowflake id, {String token = ""}) Future<Webhook>
getGuildBan(Snowflake guildId, Snowflake bannedUserId) Future<Ban>
getGuildBans(Snowflake guildId) Stream<Ban>
getGuildDiscoveryURL(Snowflake guildId, String? splashHash, {String format = "webp", int size = 128}) String?
Returns discovery url for given guildId and splashHash. Allows to additionally specify format and size of returned image.
getGuildIconUrl(Snowflake guildId, String? iconHash, String format, int size) String?
Returns cdn url for given guildId and iconHash. Requires to specify format and size of returned image. Format can be webp, png. Size should be power of 2, eg. 512, 1024
getGuildSplashURL(Snowflake guildId, String? splashHash, String format, int size) String?
Returns cdn url for given guildId and splashHash. Requires to specify format and size of returned image. Format can be webp, png. Size should be power of 2, eg. 512, 1024
getGuildWidgetUrl(Snowflake guildId, [String style = "shield"]) String
Returns url to guild widget for given guildId. Additionally accepts style parameter.
guildBan(Snowflake guildId, Snowflake userId, {int deleteMessageDays = 0, String? auditReason}) Future<void>
guildKick(Snowflake guildId, Snowflake userId, {String? auditReason}) Future<void>
guildPrune(Snowflake guildId, int days, {Iterable<Snowflake>? includeRoles, String? auditReason}) Future<int>
guildPruneCount(Snowflake guildId, int days, {Iterable<Snowflake>? includeRoles}) Future<int>
guildUnban(Snowflake guildId, Snowflake userId) Future<void>
leaveGuild(Snowflake guildId) Future<void>
moveGuildChannel(Snowflake guildId, Snowflake channelId, int position, {String? auditReason}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
pinMessage(Snowflake channelId, Snowflake messageId) Future<void>
removeRoleFromUser(Snowflake guildId, Snowflake roleId, Snowflake userId, {String? auditReason}) Future<void>
searchGuildMembers(Snowflake guildId, String query, {int limit = 1}) Stream<Member>
sendMessage(Snowflake channelId, {dynamic content, List<AttachmentBuilder>? files, EmbedBuilder? embed, bool? tts, AllowedMentions? allowedMentions, MessageBuilder? builder, ReplyBuilder? replyBuilder}) Future<Message>
sendRawRequest(String url, String method, {dynamic body, dynamic headers}) Future<_HttpResponse>
Used to send a request including the bot token header.
stickerUrl(String stickerHash, String extension) String
suppressMessageEmbeds(Snowflake channelId, Snowflake messageId) Future<Message>
toString() String
A string representation of this object. [...]
inherited
triggerTyping(Snowflake channelId) Future<void>
unpinMessage(Snowflake channelId, Snowflake messageId) Future<void>
userAvatarURL(Snowflake userId, String? avatarHash, int discriminator, {String format = "webp", int size = 128}) String

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited