Skip to content

Commit d234619

Browse files
committed
Added Deprecated Annotations
1 parent 5d854e0 commit d234619

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

lib/src/models/discord_guild.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class DiscordGuild {
7272
/// * This field is deprecated and is replaced by [channel.rtc_region](https://discord.com/developers/docs/resources/channel#channel-object-channel-structure)
7373
///
7474
/// is not always returned, and can be null
75+
@Deprecated('Use channel.rtc_region instead')
7576
final String? region;
7677

7778
/// id of afk channel

lib/src/models/discord_message.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ class DiscordMessage {
193193
/// **Deprecated** the stickers sent with the message
194194
///
195195
/// is not always returned, hence the nullable property
196+
@Deprecated('Use stickerItems instead')
196197
final List<DiscordSticker>? stickers;
197198

198199
static const idEntry = 'id';

lib/src/models/discord_stage_instance.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class DiscordStageInstance {
2121
late final DiscordStagePrivacyLevel? _privacyLevelAsEnum;
2222

2323
/// Whether or not Stage Discovery is disabled (deprecated)
24+
@Deprecated('Use `privacyLevel` instead')
2425
final bool discoverableDisabled;
2526

2627
static const idEntry = 'id';

lib/src/models/discord_stage_privacy_level.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ enum DiscordStagePrivacyLevel {
22
unused,
33

44
/// The stage instance is visible publicly. (deprecated)
5+
@Deprecated("Stages can't be publicly visible anymore")
56
public,
67

78
/// The stage instance is visible to only guild members.

0 commit comments

Comments
 (0)