Splitting up, doesn't work
This commit is contained in:
7
FluxPoseDiscordBot/ActionsBase.cs
Normal file
7
FluxPoseDiscordBot/ActionsBase.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace FluxPose.DiscordBot
|
||||
{
|
||||
public abstract class ActionsBase<TContext>(TContext context) where TContext : IInteractionContext
|
||||
{
|
||||
public ulong GuildId => context.Interaction.Guild?.Id ?? throw new InvalidOperationException("Action cannot be performed outside of a server.");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user