This change updates the NewsChannel classes so that the overwrite permission-related properties no longer throw an Exception when they are used. These properties were not initially supported by News/Announcement channels when the feature was first released, but now they are.
This commit is contained in:
committed by
Christopher F
parent
1c63fd479d
commit
e627f0780a
@@ -25,29 +25,5 @@ namespace Discord.Rest
|
||||
return entity;
|
||||
}
|
||||
public override int SlowModeInterval => throw new NotSupportedException("News channels do not support Slow Mode.");
|
||||
public override Task AddPermissionOverwriteAsync(IRole role, OverwritePermissions permissions, RequestOptions options = null)
|
||||
{
|
||||
throw new NotSupportedException("News channels do not support Overwrite Permissions.");
|
||||
}
|
||||
public override Task AddPermissionOverwriteAsync(IUser user, OverwritePermissions permissions, RequestOptions options = null)
|
||||
{
|
||||
throw new NotSupportedException("News channels do not support Overwrite Permissions.");
|
||||
}
|
||||
public override OverwritePermissions? GetPermissionOverwrite(IRole role)
|
||||
{
|
||||
throw new NotSupportedException("News channels do not support Overwrite Permissions.");
|
||||
}
|
||||
public override OverwritePermissions? GetPermissionOverwrite(IUser user)
|
||||
{
|
||||
throw new NotSupportedException("News channels do not support Overwrite Permissions.");
|
||||
}
|
||||
public override Task RemovePermissionOverwriteAsync(IRole role, RequestOptions options = null)
|
||||
{
|
||||
throw new NotSupportedException("News channels do not support Overwrite Permissions.");
|
||||
}
|
||||
public override Task RemovePermissionOverwriteAsync(IUser user, RequestOptions options = null)
|
||||
{
|
||||
throw new NotSupportedException("News channels do not support Overwrite Permissions.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user