Skip to content

Commit

Permalink
Add user app support
Browse files Browse the repository at this point in the history
  • Loading branch information
d4n3436 committed Mar 26, 2024
1 parent 12b77f5 commit 7286085
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fergun.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<ItemGroup>
<PackageReference Include="AngleSharp" Version="1.1.1" />
<PackageReference Include="Discord.Addons.Hosting" Version="6.0.0" />
<PackageReference Include="Discord.Net.Interactions" Version="3.13.1" />
<PackageReference Include="Discord.Net.Interactions" Version="3.14.1" />
<PackageReference Include="Fergun.Interactive" Version="1.7.5" />
<PackageReference Include="GScraper" Version="1.1.3" />
<PackageReference Include="GTranslate" Version="2.1.6" />
Expand Down
2 changes: 2 additions & 0 deletions src/Modules/ImageModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

namespace Fergun.Modules;

[CommandContextType(InteractionContextType.BotDm, InteractionContextType.PrivateChannel, InteractionContextType.Guild)]
[IntegrationType(ApplicationIntegrationType.UserInstall, ApplicationIntegrationType.GuildInstall)]
[Ratelimit(2, Constants.GlobalRatelimitPeriod)]
[Group("img", "Image search commands.")]
public class ImageModule : InteractionModuleBase
Expand Down
2 changes: 2 additions & 0 deletions src/Modules/OcrModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

namespace Fergun.Modules;

[CommandContextType(InteractionContextType.BotDm, InteractionContextType.PrivateChannel, InteractionContextType.Guild)]
[IntegrationType(ApplicationIntegrationType.UserInstall, ApplicationIntegrationType.GuildInstall)]
[Ratelimit(2, 20)]
[Group("ocr", "OCR commands.")]
public class OcrModule : InteractionModuleBase
Expand Down
2 changes: 2 additions & 0 deletions src/Modules/OtherModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

namespace Fergun.Modules;

[CommandContextType(InteractionContextType.BotDm, InteractionContextType.PrivateChannel, InteractionContextType.Guild)]
[IntegrationType(ApplicationIntegrationType.UserInstall, ApplicationIntegrationType.GuildInstall)]
[Ratelimit(Constants.GlobalCommandUsesPerPeriod, Constants.GlobalRatelimitPeriod)]
public class OtherModule : InteractionModuleBase
{
Expand Down
2 changes: 2 additions & 0 deletions src/Modules/TtsModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

namespace Fergun.Modules;

[CommandContextType(InteractionContextType.BotDm, InteractionContextType.PrivateChannel, InteractionContextType.Guild)]
[IntegrationType(ApplicationIntegrationType.UserInstall, ApplicationIntegrationType.GuildInstall)]
[Ratelimit(2, Constants.GlobalRatelimitPeriod)]
[Group("tts", "TTS commands.")]
public class TtsModule : InteractionModuleBase
Expand Down
2 changes: 2 additions & 0 deletions src/Modules/UrbanModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

namespace Fergun.Modules;

[CommandContextType(InteractionContextType.BotDm, InteractionContextType.PrivateChannel, InteractionContextType.Guild)]
[IntegrationType(ApplicationIntegrationType.UserInstall, ApplicationIntegrationType.GuildInstall)]
[Ratelimit(2, Constants.GlobalRatelimitPeriod)]
[Group("urban", "Urban Dictionary commands")]
public class UrbanModule : InteractionModuleBase
Expand Down
2 changes: 2 additions & 0 deletions src/Modules/UtilityModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@

namespace Fergun.Modules;

[CommandContextType(InteractionContextType.BotDm, InteractionContextType.PrivateChannel, InteractionContextType.Guild)]
[IntegrationType(ApplicationIntegrationType.UserInstall, ApplicationIntegrationType.GuildInstall)]
[Ratelimit(Constants.GlobalCommandUsesPerPeriod, Constants.GlobalRatelimitPeriod)]
public class UtilityModule : InteractionModuleBase
{
Expand Down

0 comments on commit 7286085

Please sign in to comment.