Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 1022 Bytes

unpin.md

File metadata and controls

21 lines (17 loc) · 1022 Bytes

About $unpin (Modified Command in Project 2)

This command lets the student to delete a pinned message from their private pinning board.

Location of Code

The code that implements the above mentioned gits functionality is located here.

Code Description

Functions

deleteMessage(self, ctx, tagname: str):
This function takes as arguments the values provided by the constructor through self, context in which the command was called, and the tag-name of the pinned message.

How to run it? (Small Example)

Let's say that you are in the server that has the Classmate Bot active and online. All you have to do is enter the command 'unpin' and the tagname of the message you want to unpin.

$unpin TAGNAME 
$unpin HW 

Successful execution of this command will unpin the message with the tagname for the specific user.

image