Browse Source

Merge pull request #1 from msx752/msx752-patch-1

fix for 'unsupported property on RestNewsChannel'
pull/1469/head
Mustafa Salih ASLIM GitHub 5 years ago
parent
commit
1e68640279
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs

+ 2
- 1
src/Discord.Net.Rest/Entities/Channels/RestTextChannel.cs View File

@@ -42,7 +42,8 @@ namespace Discord.Rest
base.Update(model); base.Update(model);
CategoryId = model.CategoryId; CategoryId = model.CategoryId;
Topic = model.Topic.Value; Topic = model.Topic.Value;
SlowModeInterval = model.SlowMode.Value;
if (model.SlowMode.IsSpecified)
SlowModeInterval = model.SlowMode.Value;
IsNsfw = model.Nsfw.GetValueOrDefault(); IsNsfw = model.Nsfw.GetValueOrDefault();
} }




Loading…
Cancel
Save