Skip to content

Commit

Permalink
Fix typo: chanel -> channel (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
abitofevrything authored Aug 4, 2023
1 parent 05c021c commit 1533c76
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/src/http/managers/channel_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class ChannelManager extends ReadOnlyManager<Channel> {
ChannelType.privateThread: parsePrivateThread,
ChannelType.guildStageVoice: parseGuildStageChannel,
ChannelType.guildDirectory: parseDirectoryChannel,
ChannelType.guildForum: parseForumChanel,
ChannelType.guildForum: parseForumChannel,
};

return parsers[type]!(raw, guildId: guildId);
Expand Down Expand Up @@ -314,8 +314,8 @@ class ChannelManager extends ReadOnlyManager<Channel> {
);
}

ForumChannel parseForumChanel(Map<String, Object?> raw, {Snowflake? guildId}) {
assert(raw['type'] == ChannelType.guildForum.value, 'Invalid type for ForumChanel');
ForumChannel parseForumChannel(Map<String, Object?> raw, {Snowflake? guildId}) {
assert(raw['type'] == ChannelType.guildForum.value, 'Invalid type for ForumChannel');

return ForumChannel(
id: Snowflake.parse(raw['id']!),
Expand Down
2 changes: 1 addition & 1 deletion lib/src/models/channel/thread.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ abstract class Thread implements TextChannel, GuildChannel {
/// Add a member to this thread.
///
/// External references:
/// * [ChanelManager.addThreadMember]
/// * [ChannelManager.addThreadMember]
/// * Discord API Reference: https://discord.com/developers/docs/resources/channel#add-thread-member
Future<void> addThreadMember(Snowflake memberId);

Expand Down
2 changes: 1 addition & 1 deletion lib/src/models/channel/voice_channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ abstract class VoiceChannel implements Channel {
/// The ID of the voice region for this channel, or automatic if `null`.
String? get rtcRegion;

/// The [VideoQualityMode] for cameras in this chanel.
/// The [VideoQualityMode] for cameras in this channel.
VideoQualityMode get videoQualityMode;
}

Expand Down

0 comments on commit 1533c76

Please sign in to comment.