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

View File

@@ -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.

View File

@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Used as a marker class for bot_perm and user_perm Attributes

View File

@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
[AttributeUsage(AttributeTargets.Method)]
public sealed class bot_owner_onlyAttribute : MedusaPermAttribute

View File

@@ -1,6 +1,6 @@
using Discord;
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public sealed class bot_permAttribute : MedusaPermAttribute

View File

@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Marks a method as a snek command

View File

@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Marks services in command arguments for injection.

View File

@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Marks the parameter to take

View File

@@ -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.

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

View File

@@ -1,6 +1,6 @@
using Discord;
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public sealed class user_permAttribute : MedusaPermAttribute

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

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

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

View File

@@ -1,4 +1,4 @@
namespace NadekoBot;
namespace NadekoBot.Medusa;
public static class EmbedBuilderExtensions
{

View File

@@ -1,7 +1,6 @@
using Discord;
using Nadeko.Snake;
namespace NadekoBot;
namespace NadekoBot.Medusa;
public static class MedusaExtensions
{

View File

@@ -15,6 +15,6 @@
</ItemGroup>
<PropertyGroup Condition=" '$(Version)' == '' ">
<Version>6.0.0</Version>
<Version>9.0.0</Version>
</PropertyGroup>
</Project>

View File

@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Overridden to implement parsers for custom types

View File

@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
public readonly struct ParseResult<T>
{

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

View File

@@ -1,6 +1,6 @@
using YamlDotNet.Serialization;
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
public readonly struct CommandStrings
{

View File

@@ -1,6 +1,6 @@
using System.Globalization;
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Defines methods to retrieve and reload medusa strings

View File

@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
/// <summary>
/// Implemented by classes which provide localized strings in their own ways

View File

@@ -1,4 +1,4 @@
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
public class LocalMedusaStringsProvider : IMedusaStringsProvider
{

View File

@@ -1,7 +1,7 @@
using System.Globalization;
using Serilog;
namespace Nadeko.Snake;
namespace NadekoBot.Medusa;
public class MedusaStrings : IMedusaStrings
{

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