From 53b33789010728b640afc42fc2410e3461334810 Mon Sep 17 00:00:00 2001 From: Ske Date: Wed, 10 Jul 2019 12:36:51 +0200 Subject: [PATCH] Fix importing by URL --- PluralKit.Bot/Commands/ImportExportCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Commands/ImportExportCommands.cs b/PluralKit.Bot/Commands/ImportExportCommands.cs index 826c8183..69b31d6d 100644 --- a/PluralKit.Bot/Commands/ImportExportCommands.cs +++ b/PluralKit.Bot/Commands/ImportExportCommands.cs @@ -17,7 +17,7 @@ namespace PluralKit.Bot.Commands [Remarks("import [fileurl]")] public async Task Import([Remainder] string url = null) { - if (url == null) url = Context.Message.Attachments.FirstOrDefault()?.Filename; + if (url == null) url = Context.Message.Attachments.FirstOrDefault()?.Url; if (url == null) throw Errors.NoImportFilePassed; await Context.BusyIndicator(async () =>