lint: refactor SlowMode -> SlowModeInterval
this was the name change i always wanted
This commit is contained in:
@@ -46,7 +46,7 @@ namespace Discord.Rest
|
||||
CategoryId = args.CategoryId,
|
||||
Topic = args.Topic,
|
||||
IsNsfw = args.IsNsfw,
|
||||
SlowMode = args.SlowMode,
|
||||
SlowModeInterval = args.SlowModeInterval,
|
||||
};
|
||||
return await client.ApiClient.ModifyGuildChannelAsync(channel.Id, apiArgs, options).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Discord.Rest
|
||||
public class RestTextChannel : RestGuildChannel, IRestMessageChannel, ITextChannel
|
||||
{
|
||||
public string Topic { get; private set; }
|
||||
public int SlowMode { get; private set; }
|
||||
public int SlowModeInterval { get; private set; }
|
||||
public ulong? CategoryId { get; private set; }
|
||||
|
||||
public string Mention => MentionUtils.MentionChannel(Id);
|
||||
@@ -35,7 +35,7 @@ namespace Discord.Rest
|
||||
base.Update(model);
|
||||
CategoryId = model.CategoryId;
|
||||
Topic = model.Topic.Value;
|
||||
SlowMode = model.SlowMode.Value;
|
||||
SlowModeInterval = model.SlowMode.Value;
|
||||
_nsfw = model.Nsfw.GetValueOrDefault();
|
||||
}
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ namespace Discord.Rest
|
||||
{
|
||||
CategoryId = props.CategoryId,
|
||||
Topic = props.Topic,
|
||||
IsNsfw = props.IsNsfw
|
||||
IsNsfw = props.IsNsfw,
|
||||
};
|
||||
var model = await client.ApiClient.CreateGuildChannelAsync(guild.Id, args, options).ConfigureAwait(false);
|
||||
return RestTextChannel.Create(client, guild, model);
|
||||
|
||||
Reference in New Issue
Block a user