-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for creating and managing Schedule channels
- Loading branch information
Showing
43 changed files
with
670 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/QQBot.Net.Core/Entities/Channels/CreateApplicationChannelProperties.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace QQBot; | ||
|
||
/// <summary> | ||
/// 提供用于创建 <see cref="QQBot.IApplicationChannel" /> 的属性。 | ||
/// </summary> | ||
/// <seealso cref="QQBot.IGuild.CreateApplicationChannelAsync(System.String,System.Action{QQBot.CreateApplicationChannelProperties},QQBot.RequestOptions)"/> | ||
public class CreateApplicationChannelProperties : CreateNestedChannelProperties | ||
{ | ||
/// <summary> | ||
/// 获取或设置要设置到此频道的应用频道类型。 | ||
/// </summary> | ||
public ChannelApplication? ApplicationType { get; set; } | ||
} |
17 changes: 17 additions & 0 deletions
17
src/QQBot.Net.Core/Entities/Channels/CreateCategoryChannelProperties.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace QQBot; | ||
|
||
/// <summary> | ||
/// 提供用于创建 <see cref="QQBot.ICategoryChannel" /> 的属性。 | ||
/// </summary> | ||
/// <seealso cref="QQBot.IGuild.CreateCategoryChannelAsync(System.String,System.Action{QQBot.CreateCategoryChannelProperties},QQBot.RequestOptions)"/> | ||
public class CreateCategoryChannelProperties : CreateGuildChannelProperties | ||
{ | ||
/// <summary> | ||
/// 获取或设置要设置到此频道的位置。 | ||
/// </summary> | ||
/// <remarks> | ||
/// 更小的数值表示更靠近列表顶部的位置。设置为与同分组下的其他频道相同的值,将会使当前频道排列于与该频道相邻更靠近列表顶部的位置。 | ||
/// 分组频道的位置顺序号至少为 <c>2</c>。 | ||
/// </remarks> | ||
public int Position { get; set; } = 2; | ||
} |
7 changes: 7 additions & 0 deletions
7
src/QQBot.Net.Core/Entities/Channels/CreateForumChannelProperties.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace QQBot; | ||
|
||
/// <summary> | ||
/// 提供用于创建 <see cref="QQBot.IForumChannel" /> 的属性。 | ||
/// </summary> | ||
/// <seealso cref="QQBot.IGuild.CreateForumChannelAsync(System.String,System.Action{QQBot.CreateForumChannelProperties},QQBot.RequestOptions)"/> | ||
public class CreateForumChannelProperties : CreateNestedChannelProperties; |
6 changes: 6 additions & 0 deletions
6
src/QQBot.Net.Core/Entities/Channels/CreateGuildChannelProperties.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace QQBot; | ||
|
||
/// <summary> | ||
/// 提供用于创建 <see cref="QQBot.IGuildChannel" /> 的属性。 | ||
/// </summary> | ||
public class CreateGuildChannelProperties; |
7 changes: 7 additions & 0 deletions
7
src/QQBot.Net.Core/Entities/Channels/CreateLiveStreamChannelProperties.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace QQBot; | ||
|
||
/// <summary> | ||
/// 提供用于创建 <see cref="QQBot.ILiveStreamChannel" /> 的属性。 | ||
/// </summary> | ||
/// <seealso cref="QQBot.IGuild.CreateLiveStreamChannelAsync(System.String,System.Action{QQBot.CreateLiveStreamChannelProperties},QQBot.RequestOptions)"/> | ||
public class CreateLiveStreamChannelProperties : CreateNestedChannelProperties; |
26 changes: 26 additions & 0 deletions
26
src/QQBot.Net.Core/Entities/Channels/CreateNestedChannelProperties.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace QQBot; | ||
|
||
/// <summary> | ||
/// 提供用于创建 <see cref="QQBot.INestedChannel" /> 的属性。 | ||
/// </summary> | ||
public class CreateNestedChannelProperties : CreateGuildChannelProperties | ||
{ | ||
// /// <summary> | ||
// /// 获取或设置要设置到此频道的所属分组频道的 ID。 | ||
// /// </summary> | ||
// /// <remarks> | ||
// /// 将此值设置为某分组频道的 ID 可以使新建频道位于该分组频道下;将此值设置为 <c>null</c> | ||
// /// 可以使新建频道位于服务器所有分组频道的上方,即不属于任何分组频道。 | ||
// /// </remarks> | ||
// public ulong? CategoryId { get; set; } | ||
|
||
/// <summary> | ||
/// 获取或设置要设置到此频道的私有频道类型。 | ||
/// </summary> | ||
public PrivateType? PrivateType { get; set; } | ||
|
||
/// <summary> | ||
/// 获取或设置要设置到此频道的发言权限。 | ||
/// </summary> | ||
public SpeakPermission? SpeakPermission { get; set; } | ||
} |
7 changes: 7 additions & 0 deletions
7
src/QQBot.Net.Core/Entities/Channels/CreateScheduleChannelProperties.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace QQBot; | ||
|
||
/// <summary> | ||
/// 提供用于创建 <see cref="QQBot.IScheduleChannel" /> 的属性。 | ||
/// </summary> | ||
/// <seealso cref="QQBot.IGuild.CreateScheduleChannelAsync(System.String,System.Action{QQBot.CreateScheduleChannelProperties},QQBot.RequestOptions)"/> | ||
public class CreateScheduleChannelProperties : CreateNestedChannelProperties; |
13 changes: 13 additions & 0 deletions
13
src/QQBot.Net.Core/Entities/Channels/CreateTextChannelProperties.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace QQBot; | ||
|
||
/// <summary> | ||
/// 提供用于创建 <see cref="QQBot.ITextChannel" /> 的属性。 | ||
/// </summary> | ||
/// <seealso cref="QQBot.IGuild.CreateTextChannelAsync(System.String,System.Action{QQBot.CreateTextChannelProperties},QQBot.RequestOptions)"/> | ||
public class CreateTextChannelProperties : CreateNestedChannelProperties | ||
{ | ||
/// <summary> | ||
/// 获取或设置要设置到此频道的子频道二级分类。 | ||
/// </summary> | ||
public ChannelSubType? SubType { get; set; } | ||
} |
7 changes: 7 additions & 0 deletions
7
src/QQBot.Net.Core/Entities/Channels/CreateVoiceChannelProperties.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace QQBot; | ||
|
||
/// <summary> | ||
/// 提供用于创建 <see cref="QQBot.IVoiceChannel" /> 的属性。 | ||
/// </summary> | ||
/// <seealso cref="QQBot.IGuild.CreateVoiceChannelAsync(System.String,System.Action{QQBot.CreateVoiceChannelProperties},QQBot.RequestOptions)"/> | ||
public class CreateVoiceChannelProperties : CreateNestedChannelProperties; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace QQBot; | ||
|
||
/// <summary> | ||
/// 表示一个日程子频道。 | ||
/// </summary> | ||
public interface IScheduleChannel : INestedChannel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.