mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Fix importing by URL
This commit is contained in:
parent
305d8f220e
commit
53b3378901
1 changed files with 1 additions and 1 deletions
|
|
@ -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 () =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue