Browse Source

Fixed ChannelTypeReader by mention

tags/1.0-rc
RogueException 9 years ago
parent
commit
f2c38567b6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Commands/Readers/ChannelTypeReader.cs

+ 1
- 1
src/Discord.Net.Commands/Readers/ChannelTypeReader.cs View File

@@ -21,7 +21,7 @@ namespace Discord.Commands

//By Mention (1.0)
if (MentionUtils.TryParseChannel(input, out id))
AddResult(results, await guild.GetUserAsync(id).ConfigureAwait(false) as T, 1.00f);
AddResult(results, await guild.GetChannelAsync(id).ConfigureAwait(false) as T, 1.00f);

//By Id (0.9)
if (ulong.TryParse(input, NumberStyles.None, CultureInfo.InvariantCulture, out id))


Loading…
Cancel
Save