Merge branch 'hokutochen-v4-patch-25972' into 'v4'

fixed withURL not working

See merge request Kwoth/nadekobot!286
This commit is contained in:
Kwoth
2023-02-12 10:20:22 +00:00

View File

@@ -1,4 +1,4 @@
#nullable disable #nullable disable
using Microsoft.Extensions.Caching.Memory; using Microsoft.Extensions.Caching.Memory;
using NadekoBot.Modules.Administration.Services; using NadekoBot.Modules.Administration.Services;
using NadekoBot.Modules.Searches.Common; using NadekoBot.Modules.Searches.Common;
@@ -325,7 +325,7 @@ public partial class Searches : NadekoModule<SearchesService>
return _eb.Create() return _eb.Create()
.WithOkColor() .WithOkColor()
.WithUrl(item.Permalink) .WithUrl(item.Permalink)
.WithAuthor(item.Word) .WithTitle(item.Word)
.WithDescription(item.Definition); .WithDescription(item.Definition);
}, },
items.Length, items.Length,
@@ -612,4 +612,4 @@ public partial class Searches : NadekoModule<SearchesService>
[JsonProperty("result_url")] [JsonProperty("result_url")]
public string ResultUrl { get; set; } public string ResultUrl { get; set; }
} }
} }