Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Commit 1574a5f

Browse files
committed
dotnet format, replace Emzi's doc link to github.io
1 parent 60e6b3b commit 1574a5f

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

Handlers/QueryHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace DSharpPlusDocs.Handlers
3030
public class QueryHandler
3131
{
3232
public Cache Cache { get; private set; }
33-
public static string DocsBaseUrl { get; set; } = "https://dsharpplus.emzi0767.com/";
33+
public static string DocsBaseUrl { get; set; } = "https://dsharpplus.github.io/";
3434

3535
public QueryHandler() => Cache = new Cache();
3636

Modules/Commands.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ public async Task InfoAsync(CommandContext ctx)
225225
eb.AddField(
226226
"Info",
227227
$"- Library: DSharpPlus ({ctx.Client.VersionString})\n" +
228-
$"- Runtime: {RuntimeInformation.FrameworkDescription} {RuntimeInformation.ProcessArchitecture}\n" +
229-
//$"- Source: https://github.com/SubZero0/DiscordNet-Docs\n" +
228+
$"- Runtime: {RuntimeInformation.FrameworkDescription} {RuntimeInformation.ProcessArchitecture}\n" +
229+
//$"- Source: https://github.com/SubZero0/DiscordNet-Docs\n" +
230230
$"- Uptime: {DateTime.Now - Process.GetCurrentProcess().StartTime:dd\\.hh\\:mm\\:ss}",
231231
false);
232232
eb.AddField(

Utils.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ namespace DSharpPlusDocs
2929
{
3030
public static class Utils
3131
{
32-
public static IEnumerable<T> RandomShuffle<T>(this IEnumerable<T> source)
33-
{
34-
return source.Select(t => new { Index = Guid.NewGuid(), Value = t }).OrderBy(p => p.Index).Select(p => p.Value);
35-
}
32+
public static IEnumerable<T> RandomShuffle<T>(this IEnumerable<T> source) => source.Select(t => new { Index = Guid.NewGuid(), Value = t }).OrderBy(p => p.Index).Select(p => p.Value);
3633

3734
public static string BuildType(Type type)
3835
{
@@ -50,14 +47,11 @@ public static string BuildType(Type type)
5047
return GetTypeName(type, typeName, typeGeneric);
5148
}
5249

53-
private static string GetTypeName(Type type, string name, string generic)
54-
{
55-
return Nullable.GetUnderlyingType(type) != null
50+
private static string GetTypeName(Type type, string name, string generic) => Nullable.GetUnderlyingType(type) != null
5651
? $"{generic}?"
5752
: type.IsByRef
5853
? BuildType(type.GetElementType())
5954
: Aliases.ContainsKey(type) ? Aliases[type] : $"{name}{(string.IsNullOrEmpty(generic) ? "" : $"<{generic}>")}";
60-
}
6155

6256
private static readonly Dictionary<Type, string> Aliases = new()
6357
{

0 commit comments

Comments
 (0)