Namespace changes to make them make sense

This commit is contained in:
Kwoth
2024-04-27 22:45:14 +00:00
parent e963ffeaab
commit 4bab94b329
69 changed files with 59 additions and 78 deletions
@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Overridden to implement custom checks which commands have to pass in order to be executed.
@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Used as a marker class for bot_perm and user_perm Attributes
@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
[AttributeUsage(AttributeTargets.Method)]
public sealed class bot_owner_onlyAttribute : MedusaPermAttribute
@@ -1,6 +1,6 @@
using Discord;
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public sealed class bot_permAttribute : MedusaPermAttribute
+1 -1
View File
@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Marks a method as a snek command
@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Marks services in command arguments for injection.
@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Marks the parameter to take
@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Sets the priority of a command in case there are multiple commands with the same name but different parameters.
+1 -1
View File
@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Marks the class as a service which can be used within the same Medusa
@@ -1,6 +1,6 @@
using Discord;
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public sealed class user_permAttribute : MedusaPermAttribute
+1 -1
View File
@@ -1,7 +1,7 @@
using Discord;
using NadekoBot;
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Commands which take this class as a first parameter can be executed in both DMs and Servers
+1 -1
View File
@@ -1,6 +1,6 @@
using Discord;
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Commands which take this type as the first parameter can only be executed in DMs
+1 -1
View File
@@ -1,6 +1,6 @@
using Discord;
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Commands which take this type as a first parameter can only be executed in a server
@@ -1,4 +1,4 @@
namespace NadekoBot;
namespace NadekoBot.Medusa;
public static class EmbedBuilderExtensions
{
@@ -1,7 +1,6 @@
using Discord;
using Nadeko.Snake;
namespace NadekoBot;
namespace NadekoBot.Medusa;
public static class MedusaExtensions
{
+1 -1
View File
@@ -15,6 +15,6 @@
</ItemGroup>
<PropertyGroup Condition=" '$(Version)' == '' ">
<Version>6.0.0</Version>
<Version>9.0.0</Version>
</PropertyGroup>
</Project>
+1 -1
View File
@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Overridden to implement parsers for custom types
+1 -1
View File
@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
public readonly struct ParseResult<T>
{
+1 -1
View File
@@ -1,6 +1,6 @@
using Discord;
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// The base class which will be loaded as a module into NadekoBot
+1 -1
View File
@@ -1,6 +1,6 @@
using YamlDotNet.Serialization;
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
public readonly struct CommandStrings
{
+1 -1
View File
@@ -1,6 +1,6 @@
using System.Globalization;
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Defines methods to retrieve and reload medusa strings
@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Implemented by classes which provide localized strings in their own ways
@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
public class LocalMedusaStringsProvider : IMedusaStringsProvider
{
+1 -1
View File
@@ -1,7 +1,7 @@
using System.Globalization;
using Serilog;
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
public class MedusaStrings : IMedusaStrings
{
+1 -1
View File
@@ -2,7 +2,7 @@
using Serilog;
using YamlDotNet.Serialization;
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Loads strings from the shortcut or localizable path