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

@@ -131,7 +131,7 @@ public static class StringExtensions
me =>
{
var str = me.Groups["code"].Value;
var newString = YamlHelper.UnescapeUnicodeCodePoint(str);
var newString = str.UnescapeUnicodeCodePoint();
return newString;
});
}

View File

@@ -1,6 +1,4 @@
#nullable enable
using Nadeko.Snake;
using NadekoBot.Medusa;
[DIIgnore]
public sealed class BehaviorAdapter : ICustomBehavior

View File

@@ -1,4 +1,4 @@
using Nadeko.Snake;
using NadekoBot.Medusa;
internal class ContextAdapterFactory
{

View File

@@ -1,5 +1,5 @@
using Microsoft.Extensions.DependencyInjection;
using Nadeko.Snake;
using NadekoBot.Medusa;
public sealed class DmContextAdapter : DmContext
{

View File

@@ -1,4 +1,4 @@
using Nadeko.Snake;
using NadekoBot.Medusa;
namespace Nadeko.Medusa.Adapters;

View File

@@ -1,5 +1,5 @@
using Microsoft.Extensions.DependencyInjection;
using Nadeko.Snake;
using NadekoBot.Medusa;
public sealed class GuildContextAdapter : GuildContext
{

View File

@@ -1,4 +1,4 @@
using Nadeko.Snake;
using NadekoBot.Medusa;
public sealed class ParamParserAdapter<T> : TypeReader
{

View File

@@ -1,4 +1,4 @@
namespace Nadeko.Medusa;
namespace NadekoBot.Medusa;
/// <summary>
/// Enum specifying in which context the command can be executed

View File

@@ -1,4 +1,4 @@
namespace Nadeko.Medusa;
namespace NadekoBot.Medusa;
public interface IMedusaConfigService
{

View File

@@ -2,7 +2,7 @@
using Cloneable;
using NadekoBot.Common.Yml;
namespace Nadeko.Medusa;
namespace NadekoBot.Medusa;
[Cloneable]
public sealed partial class MedusaConfig : ICloneable<MedusaConfig>

View File

@@ -1,6 +1,6 @@
using NadekoBot.Common.Configs;
namespace Nadeko.Medusa;
namespace NadekoBot.Medusa;
public sealed class MedusaConfigService : ConfigServiceBase<MedusaConfig>, IMedusaConfigService
{

View File

@@ -1,7 +1,7 @@
using System.Reflection;
using System.Runtime.Loader;
namespace Nadeko.Medusa;
namespace NadekoBot.Medusa;
public class MedusaAssemblyLoadContext : AssemblyLoadContext
{

View File

@@ -1,5 +1,4 @@
using Nadeko.Snake;
using System.Reflection;
using System.Reflection;
using Ninject;
using Ninject.Activation;
using Ninject.Activation.Caching;
@@ -7,7 +6,7 @@ using Ninject.Modules;
using Ninject.Planning;
using System.Text.Json;
namespace Nadeko.Medusa;
namespace NadekoBot.Medusa;
public sealed class MedusaNinjectModule : NinjectModule
{

View File

@@ -10,9 +10,8 @@ using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Reflection;
using System.Runtime.CompilerServices;
using Nadeko.Snake;
namespace Nadeko.Medusa;
namespace NadekoBot.Medusa;
// ReSharper disable RedundantAssignment
public sealed class MedusaLoaderService : IMedusaLoaderService, IReadyExecutor, INService

View File

@@ -1,4 +1,4 @@
namespace Nadeko.Medusa;
namespace NadekoBot.Medusa;
public sealed record ParamData(
Type Type,

View File

@@ -1,8 +1,8 @@
using Nadeko.Snake;
using NadekoBot.Medusa;
using Ninject.Modules;
using System.Collections.Immutable;
namespace Nadeko.Medusa;
namespace NadekoBot.Medusa;
public sealed record ResolvedMedusa(
WeakReference<MedusaAssemblyLoadContext> LoadContext,

View File

@@ -1,8 +1,7 @@
using Nadeko.Snake;
using NadekoBot.Medusa;
using System.Reflection;
using CommandStrings = Nadeko.Snake.CommandStrings;
namespace Nadeko.Medusa;
namespace NadekoBot.Medusa;
public sealed class SnekCommandData
{

View File

@@ -1,6 +1,4 @@
using Nadeko.Snake;
namespace Nadeko.Medusa;
namespace NadekoBot.Medusa;
public sealed record SnekInfo(
string Name,

View File

@@ -86,7 +86,7 @@ public abstract class NadekoModule : ModuleBase
embed.WithPendingColor()
.WithFooter("yes/no");
var msg = await MessageChannelExtensions.EmbedAsync(ctx.Channel, embed);
var msg = await ctx.Channel.EmbedAsync(embed);
try
{
var input = await GetUserInputAsync(ctx.User.Id, ctx.Channel.Id);