using Nadeko.Medusa; internal class ContextAdapterFactory { public static AnyContext CreateNew(ICommandContext context, IMedusaStrings strings, IServiceProvider services) => context.Guild is null ? new DmContextAdapter(context, strings, services) : new GuildContextAdapter(context, strings, services); }