Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into feat/voice-status
Browse files Browse the repository at this point in the history
# Conflicts:
#	Backend/Remora.Discord.API.Abstractions/API/Objects/Permissions/DiscordPermission.cs
  • Loading branch information
VelvetToroyashi committed Apr 29, 2024
2 parents 0a22fc8 + a10a63f commit ebbc19d
Show file tree
Hide file tree
Showing 353 changed files with 5,872 additions and 1,351 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"docfx": {
"version": "2.62.2",
"version": "2.76.0",
"commands": [
"docfx"
]
Expand Down
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# Based on an issue template from the Discord API documentation.
name: Bug Report
description: A bug has been found in the library
title: "[Bug]: "
labels: ["bug"]
body:
- type: markdown
attributes:
value: "Before opening a new issue, please search existing issues: https://github.com/Nihlus/Remora.Discord/issues"
value: "Before opening a new issue, please search existing issues: https://github.com/Remora/Remora.Discord/issues?q=is%3Aissue+label%3Abug"
- type: textarea
id: description
attributes:
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Developer Documentation
url: https://nihlus.github.io/Remora.Discord/
about: Need documentation and examples for the API? Head over to Discord's developer documentation.
url: https://remora.github.io/Remora.Discord/main/articles/intro.html
about: Need documentation and examples for the API? Head over to Remora.Discord's documentation.
- name: Discord Server
url: https://discord.gg/dyYmwashVs
about: Need help with the library? Talk to us in our Discord server.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Based on an issue template from the Discord API documentation.
name: Feature Request
description: Suggestions for new or different behavior in the library
labels: ["feature request"]
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: "Before opening a new issue, please search existing issues: https://github.com/Nihlus/Remora.Discord/issues"
value: "Before opening a new issue, please search existing issues: https://github.com/Remora/Remora.Discord/issues?q=is%3Aissue+label%3Aenhancement"
- type: textarea
id: description
attributes:
Expand Down Expand Up @@ -33,4 +33,4 @@ body:
label: Additional Details
description: Is there anything else you can add about this feature request?
validations:
required: false
required: false
106 changes: 60 additions & 46 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,47 +18,59 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- uses: actions/setup-dotnet@v2
with:
dotnet-version: |
6.0.x
7.0.x
- name: Build
run: |
dotnet restore
dotnet build -c Release --no-restore
- name: Test
run: dotnet test -c Release --no-restore --no-build --verbosity minimal

- name: Package
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: dotnet pack -c Release --no-restore --no-build --version-suffix "github$GITHUB_RUN_ID"

- uses: actions/upload-artifact@v3
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
with:
name: nupkg
path: nuget/*

- name: Build Docs
if: github.event_name == 'push'
run: |
dotnet tool restore
cd ./docfx
sed -i -E "s/%APP_VERSION%/${GITHUB_REF_NAME}/" docfx_project/docfx.json
dotnet docfx docfx_project/docfx.json
- uses: actions/upload-artifact@v3
if: github.event_name == 'push'
with:
name: docfx-site
path: docfx/docfx_project/_site/
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Build
run: |
dotnet restore
dotnet build -c Release --no-restore
- name: Test
run: dotnet test -c Release --no-restore --no-build --verbosity minimal

- name: Inspect
uses: JetBrains/[email protected]
with:
tool-version: 2023.3.4
solution: Remora.Discord.sln
build: false
no-build: true
telemetry-optout: true

- name: Package
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: dotnet pack -c Release --no-restore --no-build --version-suffix "github$GITHUB_RUN_ID"

- uses: actions/upload-artifact@v4
with:
name: nupkg
path: nuget/*

- name: Build Docs
if: github.event_name == 'push'
run: |
dotnet tool restore
cd ./docfx
sed -i -E "s/%APP_VERSION%/${GITHUB_REF_NAME}/" docfx_project/docfx.json
dotnet docfx docfx_project/docfx.json
- uses: actions/upload-artifact@v4
if: github.event_name == 'push'
with:
name: docfx-site
path: docfx/docfx_project/_site/

permissions:
security-events: write

publish_docs:
name: Publish Documentation
Expand All @@ -71,12 +83,12 @@ jobs:

steps:
- name: Checkout triggering branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: base

- name: Checkout gh-pages
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: gh-pages
path: site
Expand All @@ -85,7 +97,7 @@ jobs:
run: bash base/docfx/scripts/prepare.sh

- name: Download documentation artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: docfx-site
path: site/${{ github.ref_name }}
Expand All @@ -107,15 +119,17 @@ jobs:

steps:
- name: Download package artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: nupkg
path: nuget

# To ensure that the current version being pushed does not get pruned we prune first.
- name: Prune packages older than 4 versions (new version is the 5th)
uses: smartsquaregmbh/delete-old-packages@v0.6.0
uses: smartsquaregmbh/delete-old-packages@v0.8.0
with:
organization: Remora
type: nuget
keep: 4
names: |
Remora.Discord
Expand Down
2 changes: 2 additions & 0 deletions .idea/.idea.Remora.Discord/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .idea/.idea.Remora.Discord/.idea/deployment.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Bidirectional;
/// Represents a heartbeat acknowledgement. This interface defines no data.
/// </summary>
[PublicAPI]
public interface IHeartbeatAcknowledge : IGatewayEvent, IGatewayCommand
{
}
public interface IHeartbeatAcknowledge : IGatewayEvent, IGatewayCommand;
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Commands;
/// Represents a marker interface for gateway commands.
/// </summary>
[PublicAPI]
public interface IGatewayCommand : IGatewayPayloadData
{
}
public interface IGatewayCommand : IGatewayPayloadData;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Events;
/// Represents an update to the permissions of a command.
/// </summary>
[PublicAPI]
public interface IApplicationCommandPermissionsUpdate : IGatewayEvent, IGuildApplicationCommandPermissions
{
}
public interface IApplicationCommandPermissionsUpdate : IGatewayEvent, IGuildApplicationCommandPermissions;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Events;
/// Represents the creation of an audit log entry.
/// </summary>
[PublicAPI]
public interface IGuildAuditLogEntryCreate : IGatewayEvent, IAuditLogEntry
{
}
public interface IGuildAuditLogEntryCreate : IGatewayEvent, IAuditLogEntry;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Events;
/// Represents the update of an auto moderation rule.
/// </summary>
[PublicAPI]
public interface IAutoModerationRuleCreate : IGatewayEvent, IAutoModerationRule
{
}
public interface IAutoModerationRuleCreate : IGatewayEvent, IAutoModerationRule;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Events;
/// Represents the deletion of an auto moderation rule.
/// </summary>
[PublicAPI]
public interface IAutoModerationRuleDelete : IGatewayEvent, IAutoModerationRule
{
}
public interface IAutoModerationRuleDelete : IGatewayEvent, IAutoModerationRule;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Events;
/// Represents the creation of an auto moderation rule.
/// </summary>
[PublicAPI]
public interface IAutoModerationRuleUpdate : IGatewayEvent, IAutoModerationRule
{
}
public interface IAutoModerationRuleUpdate : IGatewayEvent, IAutoModerationRule;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Events;
/// Represents the creation of a channel.
/// </summary>
[PublicAPI]
public interface IChannelCreate : IGatewayEvent, IChannel
{
}
public interface IChannelCreate : IGatewayEvent, IChannel;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Events;
/// Represents the deletion of a channel.
/// </summary>
[PublicAPI]
public interface IChannelDelete : IGatewayEvent, IChannel
{
}
public interface IChannelDelete : IGatewayEvent, IChannel;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Events;
/// Represents the update of a channel.
/// </summary>
[PublicAPI]
public interface IChannelUpdate : IGatewayEvent, IChannel
{
}
public interface IChannelUpdate : IGatewayEvent, IChannel;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Events;
/// Represents the creation of a stage instance.
/// </summary>
[PublicAPI]
public interface IStageInstanceCreate : IStageInstance, IGatewayEvent
{
}
public interface IStageInstanceCreate : IStageInstance, IGatewayEvent;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Events;
/// Represents a deletion of a stage instance.
/// </summary>
[PublicAPI]
public interface IStageInstanceDelete : IStageInstance, IGatewayEvent
{
}
public interface IStageInstanceDelete : IStageInstance, IGatewayEvent;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Events;
/// Represents an update of a stage instance.
/// </summary>
[PublicAPI]
public interface IStageInstanceUpdate : IStageInstance, IGatewayEvent
{
}
public interface IStageInstanceUpdate : IStageInstance, IGatewayEvent;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Events;
/// Represents the creation of a channel.
/// </summary>
[PublicAPI]
public interface IThreadDelete : IGatewayEvent, IPartialChannel
{
}
public interface IThreadDelete : IGatewayEvent, IPartialChannel;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Events;
/// Represents the creation of a channel.
/// </summary>
[PublicAPI]
public interface IThreadUpdate : IGatewayEvent, IChannel
{
}
public interface IThreadUpdate : IGatewayEvent, IChannel;
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Events;
/// Represents a reconnection request. This interface defines no data.
/// </summary>
[PublicAPI]
public interface IReconnect : IGatewayEvent
{
}
public interface IReconnect : IGatewayEvent;
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Events;
/// Represents an event that marks the completion of a session resumption.
/// </summary>
[PublicAPI]
public interface IResumed : IGatewayEvent
{
}
public interface IResumed : IGatewayEvent;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Events;
/// Sent when a scheduled event is created.
/// </summary>
[PublicAPI]
public interface IGuildScheduledEventCreate : IGatewayEvent, IGuildScheduledEvent
{
}
public interface IGuildScheduledEventCreate : IGatewayEvent, IGuildScheduledEvent;
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ namespace Remora.Discord.API.Abstractions.Gateway.Events;
/// Sent when a scheduled event is deleted.
/// </summary>
[PublicAPI]
public interface IGuildScheduledEventDelete : IGatewayEvent, IGuildScheduledEvent
{
}
public interface IGuildScheduledEventDelete : IGatewayEvent, IGuildScheduledEvent;
Loading

0 comments on commit ebbc19d

Please sign in to comment.