mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Remove a few unnecessary extensions
This commit is contained in:
parent
48833639e2
commit
b927d0c2b7
3 changed files with 3 additions and 32 deletions
|
|
@ -61,7 +61,7 @@ namespace PluralKit.Bot
|
|||
if (target.System != ctx.System.Id) throw Errors.NotOwnMemberError;
|
||||
else if (user != null)
|
||||
{
|
||||
if (!user.HasAvatar()) throw Errors.UserHasNoAvatar; //TODO: is this necessary?
|
||||
if (user.AvatarHash == null) throw Errors.UserHasNoAvatar;
|
||||
target.AvatarUrl = user.GetAvatarUrl(ImageFormat.Png, size: 256);
|
||||
|
||||
await _data.SaveMember(target);
|
||||
|
|
@ -131,7 +131,7 @@ namespace PluralKit.Bot
|
|||
|
||||
if (user != null)
|
||||
{
|
||||
if (!user.HasAvatar()) throw Errors.UserHasNoAvatar;
|
||||
if (user.AvatarHash == null) throw Errors.UserHasNoAvatar;
|
||||
guildData.AvatarUrl = user.GetAvatarUrl(ImageFormat.Png, size: 256);
|
||||
await _data.SetMemberGuildSettings(target, ctx.Guild.Id, guildData);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue