2942da0c35
PR Checks / test-and-build (pull_request) Successful in 11m25s
Replace REST GetGuildAsync/GetGuildUserAsync calls with authoritative member.Permissions from the slash-command interaction payload. Discord already resolves channel/guild permissions in the interaction JSON, so we no longer need to fetch the guild via REST (which returns 404 when the bot is not a REST member of the guild, e.g. user-installed apps). Keep a best-effort GetGuildAsync call only to obtain OwnerId for the permission checker fallback, swallowing 404 silently. Bump version → 3.0.7 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
16 lines
498 B
XML
16 lines
498 B
XML
<Project>
|
|
<PropertyGroup>
|
|
<Version>3.0.7</Version>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<LangVersion>preview</LangVersion>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="SecurityCodeScan.VS2019" Version="5.6.7" PrivateAssets="all" />
|
|
</ItemGroup>
|
|
</Project>
|